struct
AI::OpenAI::OpenAISpeechProviderOptions
- AI::OpenAI::OpenAISpeechProviderOptions
- Struct
- Value
- Object
Overview
OpenAI-specific provider options for speech generation.
Included Modules
- JSON::Serializable
Defined in:
ai/openai/speech/openai_speech_options.crConstructors
- .new(pull : JSON::PullParser)
- .new(instructions : String | Nil = nil, speed : Float64 | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#instructions : String | Nil
Instructions for the speech generation (e.g.
-
#speed : Float64 | Nil
The speed of the generated audio.
Constructor Detail
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.
def speed : Float64 | Nil
#
The speed of the generated audio. Select a value from 0.25 to 4.0. Default: 1.0