Class: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output
- Defined in:
- lib/openai/models/realtime/realtime_session_create_response.rb,
sig/openai/models/realtime/realtime_session_create_response.rbs
Overview
Defined Under Namespace
Modules: Voice
Instance Attribute Summary collapse
-
#format_ ⇒ OpenAI::Models::Realtime::realtime_audio_formats?
The format of the output audio.
-
#speed ⇒ Float?
The speed of the model's spoken response as a multiple of the original speed.
-
#voice ⇒ OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output::voice?
The voice the model uses to respond.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(format_: nil, speed: nil, voice: nil) ⇒ Output
constructor
A new instance of Output.
- #to_hash ⇒ { ?format_: OpenAI::Models::Realtime::realtime_audio_formats, ?speed: Float, ?voice: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output::voice }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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_: nil, speed: nil, voice: nil) ⇒ Output
Returns a new instance of Output.
|
|
# File 'lib/openai/models/realtime/realtime_session_create_response.rb', line 667
|
Instance Attribute Details
#format_ ⇒ OpenAI::Models::Realtime::realtime_audio_formats?
The format of the output audio.
644 |
# File 'lib/openai/models/realtime/realtime_session_create_response.rb', line 644 optional :format_, union: -> { OpenAI::Realtime::RealtimeAudioFormats }, api_name: :format |
#speed ⇒ Float?
The speed of the model's spoken response as a multiple of the original speed. 1.0 is the default speed. 0.25 is the minimum speed. 1.5 is the maximum speed. This value can only be changed in between model turns, not while a response is in progress.
This parameter is a post-processing adjustment to the audio after it is generated, it's also possible to prompt the model to speak faster or slower.
656 |
# File 'lib/openai/models/realtime/realtime_session_create_response.rb', line 656 optional :speed, Float |
#voice ⇒ OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output::voice?
The voice the model uses to respond. Voice cannot be changed during the session
once the model has responded with audio at least once. Current voice options are
alloy, ash, ballad, coral, echo, sage, shimmer, verse, marin,
and cedar. We recommend marin and cedar for best quality.
665 |
# File 'lib/openai/models/realtime/realtime_session_create_response.rb', line 665 optional :voice, union: -> { OpenAI::Realtime::RealtimeSessionCreateResponse::Audio::Output::Voice } |
Instance Method Details
#to_hash ⇒ { ?format_: OpenAI::Models::Realtime::realtime_audio_formats, ?speed: Float, ?voice: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output::voice }
816 817 818 819 820 |
# File 'sig/openai/models/realtime/realtime_session_create_response.rbs', line 816
def to_hash: -> {
?format_: OpenAI::Models::Realtime::realtime_audio_formats,
?speed: Float,
?voice: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Audio::Output::voice
}
|