struct AI::Provider::SpeechModel::Result

Overview

The result of a speech model doGenerate call.

Included Modules

Defined in:

ai/provider/speech_model/speech_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(audio : AudioData, warnings : Array(Shared::Warning), response : ResultResponse, request : ResultRequest | Nil = nil, provider_metadata : ProviderMetadata | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def audio : AudioData #

Generated audio as base64 encoded string or binary data.


[View source]
def provider_metadata : ProviderMetadata | Nil #

Additional provider-specific metadata.


[View source]
def request : ResultRequest | Nil #

Optional request information for telemetry and debugging.


[View source]
def response : ResultResponse #

Response information for telemetry and debugging.


[View source]
def warnings : Array(Shared::Warning) #

Warnings for the call, e.g. unsupported settings.


[View source]