struct AI::OpenAI::OpenAISpeechProviderOptions

Overview

OpenAI-specific provider options for speech generation.

Included Modules

Defined in:

ai/openai/speech/openai_speech_options.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(instructions : String | Nil = nil, speed : Float64 | Nil = nil) #

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

[View source]

Instance Method Detail

def instructions : String | Nil #

Instructions for the speech generation (e.g. "Speak in a slow and steady tone"). Does not work with tts-1 or tts-1-hd.


[View source]
def speed : Float64 | Nil #

The speed of the generated audio. Select a value from 0.25 to 4.0. Default: 1.0


[View source]