struct
AI::Provider::SpeechModel::Result
- AI::Provider::SpeechModel::Result
- Struct
- Value
- Object
Overview
The result of a speech model doGenerate call.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/speech_model/speech_model.crConstructors
- .new(audio : AudioData, warnings : Array(Shared::Warning), response : ResultResponse, request : ResultRequest | Nil = nil, provider_metadata : ProviderMetadata | Nil = nil)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#audio : AudioData
Generated audio as base64 encoded string or binary data.
-
#provider_metadata : ProviderMetadata | Nil
Additional provider-specific metadata.
-
#request : ResultRequest | Nil
Optional request information for telemetry and debugging.
-
#response : ResultResponse
Response information for telemetry and debugging.
-
#warnings : Array(Shared::Warning)
Warnings for the call, e.g.