Class: OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM
- Defined in:
- lib/openai/models/realtime/realtime_audio_formats.rb,
sig/openai/models/realtime/realtime_audio_formats.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#rate ⇒ OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::rate?
The sample rate of the audio.
-
#type ⇒ OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::type_?
The audio format.
Attributes inherited from Internal::Type::BaseModel
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rate: nil, type: nil) ⇒ AudioPCM
constructor
A new instance of AudioPCM.
- #to_hash ⇒ { ?rate: OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::rate, ?type: OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::type_ }
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(rate: nil, type: nil) ⇒ AudioPCM
Returns a new instance of AudioPCM.
|
|
# File 'lib/openai/models/realtime/realtime_audio_formats.rb', line 34
|
Instance Attribute Details
#rate ⇒ OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::rate?
The sample rate of the audio. Always 24000.
26 |
# File 'lib/openai/models/realtime/realtime_audio_formats.rb', line 26 optional :rate, enum: -> { OpenAI::Realtime::RealtimeAudioFormats::AudioPCM::Rate } |
#type ⇒ OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::type_?
The audio format. Always audio/pcm.
32 |
# File 'lib/openai/models/realtime/realtime_audio_formats.rb', line 32 optional :type, enum: -> { OpenAI::Realtime::RealtimeAudioFormats::AudioPCM::Type } |
Class Method Details
.values ⇒ Array<Integer>
|
|
# File 'lib/openai/models/realtime/realtime_audio_formats.rb', line 51
|
Instance Method Details
#to_hash ⇒ { ?rate: OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::rate, ?type: OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::type_ }
44 45 46 47 |
# File 'sig/openai/models/realtime/realtime_audio_formats.rbs', line 44
def to_hash: -> {
?rate: OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::rate,
?type: OpenAI::Models::Realtime::RealtimeAudioFormats::AudioPCM::type_
}
|