struct

AI::OpenAI::OpenAITranscriptionProviderOptions

Inherits JSON::Serializable < Struct < Value < Object

OpenAI-specific provider options for transcription.

Constructors

new(include __arg0 : Array(String) | Nil = nil, language : String | Nil = nil, prompt : String | Nil = nil, temperature : Float64 | Nil = nil, timestamp_granularities : Array(String) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

include

Additional information to include in the transcription response.

Source
language

The language of the input audio in ISO-639-1 format.

Source
prompt

An optional text to guide the model's style or continue a previous audio segment.

Source
temperature

The sampling temperature, between 0 and 1. Default: 0

Source
timestamp_granularities

The timestamp granularities to populate for this transcription. Default: ["segment"]

Source