Class: OpenAI::Models::Realtime::RealtimeAudioConfigOutput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/realtime_audio_config_output.rb

Defined Under Namespace

Modules: Voice

Instance Attribute Summary collapse

Instance Method Summary collapse

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, meta_info, new_coerce_state, 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) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Realtime::RealtimeAudioConfigOutput for more details.

Parameters:



# File 'lib/openai/models/realtime/realtime_audio_config_output.rb', line 34

Instance Attribute Details

#format_OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM, ...

The format of the output audio.



11
# File 'lib/openai/models/realtime/realtime_audio_config_output.rb', line 11

optional :format_, union: -> { OpenAI::Realtime::RealtimeAudioFormats }, api_name: :format

#speedFloat?

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.

Returns:

  • (Float, nil)


23
# File 'lib/openai/models/realtime/realtime_audio_config_output.rb', line 23

optional :speed, Float

#voiceString, ...

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.



32
# File 'lib/openai/models/realtime/realtime_audio_config_output.rb', line 32

optional :voice, union: -> { OpenAI::Realtime::RealtimeAudioConfigOutput::Voice }