struct

AI::Provider::SpeechModel::Result

Inherits JSON::Serializable < Struct < Value < Object

The result of a speech model doGenerate call.

Constructors

new(audio : AudioData, warnings : Array(Shared::Warning), response : ResultResponse, request : ResultRequest | Nil = nil, provider_metadata : ProviderMetadata | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio

Generated audio as base64 encoded string or binary data.

Source
provider_metadata

Additional provider-specific metadata.

Source
request

Optional request information for telemetry and debugging.

Source
response

Response information for telemetry and debugging.

Source
warnings

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

Source