struct
AI::Provider::SpeechModel::CallOptions
- AI::Provider::SpeechModel::CallOptions
- Struct
- Value
- Object
Overview
Options for the doGenerate call.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/speech_model/speech_model.crConstructors
- .new(pull : JSON::PullParser)
- .new(text : String, voice : String | Nil = nil, output_format : String | Nil = nil, instructions : String | Nil = nil, speed : Float64 | Nil = nil, language : String | Nil = nil, provider_options : Shared::ProviderOptions | Nil = nil, headers : Shared::Headers | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#headers : Shared::Headers | Nil
Additional HTTP headers to be sent with the request.
-
#instructions : String | Nil
Instructions for the speech generation (e.g.
-
#language : String | Nil
The language for speech generation.
-
#output_format : String | Nil
The desired output format for the audio (e.g.
-
#provider_options : Shared::ProviderOptions | Nil
Additional provider-specific options.
-
#speed : Float64 | Nil
The speed of the speech generation.
-
#text : String
Text to convert to speech.
-
#voice : String | Nil
The voice to use for speech synthesis.
Constructor Detail
Instance Method Detail
def instructions : String | Nil
#
Instructions for the speech generation (e.g. "Speak in a slow and steady tone").
def language : String | Nil
#
The language for speech generation. ISO 639-1 code (e.g. "en", "es", "fr") or "auto".
def voice : String | Nil
#
The voice to use for speech synthesis. This is provider-specific and may be a voice ID, name, or other identifier.