struct

AI::Provider::TranscriptionModel::CallOptions

Inherits JSON::Serializable < Struct < Value < Object

Options for the doGenerate call.

Constructors

new(audio : AudioData, media_type : String, provider_options : Shared::ProviderOptions | Nil = nil, headers : Shared::Headers | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio

Audio data to transcribe (base64 encoded string or binary).

Source
headers

Additional HTTP headers to be sent with the request.

Source
media_type

The IANA media type of the audio data (e.g. "audio/mp3", "audio/wav").

Source
provider_options

Additional provider-specific options.

Source