struct

AI::OpenAI::OpenAISpeechProviderOptions

Inherits JSON::Serializable < Struct < Value < Object

OpenAI-specific provider options for speech generation.

Constructors

new(instructions : String | Nil = nil, speed : Float64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

instructions

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

Source
speed

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

Source