Class: OpenAI::Models::Chat::ChatCompletionAudioParam
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Chat::ChatCompletionAudioParam
- Defined in:
- lib/openai/models/chat/chat_completion_audio_param.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#format_ ⇒ Symbol, OpenAI::Models::Chat::ChatCompletionAudioParam::Format
Specifies the output audio format.
-
#voice ⇒ String, ...
The voice the model uses to respond.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(format_: , voice: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see ChatCompletionAudioParam for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(format_: , voice: ) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Chat::ChatCompletionAudioParam for more details.
Parameters for audio output. Required when audio output is requested with ‘modalities: [“audio”]`. [Learn more](platform.openai.com/docs/guides/audio).
|
# File 'lib/openai/models/chat/chat_completion_audio_param.rb', line 21
|
Instance Attribute Details
#format_ ⇒ Symbol, OpenAI::Models::Chat::ChatCompletionAudioParam::Format
Specifies the output audio format. Must be one of ‘wav`, `mp3`, `flac`, `opus`, or `pcm16`.
12 |
# File 'lib/openai/models/chat/chat_completion_audio_param.rb', line 12 required :format_, enum: -> { OpenAI::Chat::ChatCompletionAudioParam::Format }, api_name: :format |
#voice ⇒ String, ...
The voice the model uses to respond. Supported voices are ‘alloy`, `ash`, `ballad`, `coral`, `echo`, `fable`, `nova`, `onyx`, `sage`, and `shimmer`.
19 |
# File 'lib/openai/models/chat/chat_completion_audio_param.rb', line 19 required :voice, union: -> { OpenAI::Chat::ChatCompletionAudioParam::Voice } |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/chat/chat_completion_audio_param.rb', line 47
|