struct AI::Provider::TranscriptionModel::CallOptions

Overview

Options for the doGenerate call.

Included Modules

Defined in:

ai/provider/transcription_model/transcription_model.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(audio : AudioData, media_type : String, provider_options : Shared::ProviderOptions | Nil = nil, headers : Shared::Headers | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def audio : AudioData #

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


[View source]
def headers : Shared::Headers | Nil #

Additional HTTP headers to be sent with the request.


[View source]
def media_type : String #

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


[View source]
def provider_options : Shared::ProviderOptions | Nil #

Additional provider-specific options.


[View source]