struct

AI::Provider::SpeechModel::CallOptions

Inherits JSON::Serializable < Struct < Value < Object

Options for the doGenerate call.

Constructors

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

headers

Additional HTTP headers to be sent with the request.

Source
instructions

Instructions for the speech generation (e.g. "Speak in a slow and steady tone").

Source
language

The language for speech generation. ISO 639-1 code (e.g. "en", "es", "fr") or "auto".

Source
output_format

The desired output format for the audio (e.g. "mp3", "wav").

Source
provider_options

Additional provider-specific options.

Source
speed

The speed of the speech generation.

Source
text

Text to convert to speech.

Source
voice

The voice to use for speech synthesis. This is provider-specific and may be a voice ID, name, or other identifier.

Source