struct AI::OpenAI::OpenAITranscriptionProviderOptions

Overview

OpenAI-specific provider options for transcription.

Included Modules

Defined in:

ai/openai/transcription/openai_transcription_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.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) #

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

[View source]

Instance Method Detail

def include : Array(String) | Nil #

Additional information to include in the transcription response.


[View source]
def language : String | Nil #

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


[View source]
def prompt : String | Nil #

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


[View source]
def temperature : Float64 | Nil #

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


[View source]
def timestamp_granularities : Array(String) | Nil #

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


[View source]