Class: OpenAI::Models::Live::SessionResource::Audio
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::SessionResource::Audio
- Defined in:
- lib/openai/models/live/session_resource.rb,
sig/openai/models/live/session_resource.rbs
Overview
Defined Under Namespace
Classes: Output
Instance Attribute Summary collapse
-
#format_ ⇒ OpenAI::Models::Live::audio_format?
Audio encoding and sample rate for audio sent and received over a Live WebSocket connection.
-
#output ⇒ OpenAI::Live::SessionResource::Audio::Output?
The voice used for speech generated by the Live model.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(format_: nil, output: nil) ⇒ Audio
constructor
A new instance of Audio.
- #to_hash ⇒ { ?format_: OpenAI::Models::Live::audio_format, ?output: OpenAI::Live::SessionResource::Audio::Output }
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, output: nil) ⇒ Audio
Returns a new instance of Audio.
|
|
# File 'lib/openai/models/live/session_resource.rb', line 205
|
Instance Attribute Details
#format_ ⇒ OpenAI::Models::Live::audio_format?
Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.
197 |
# File 'lib/openai/models/live/session_resource.rb', line 197 optional :format_, union: -> { OpenAI::Live::AudioFormat }, api_name: :format |
#output ⇒ OpenAI::Live::SessionResource::Audio::Output?
The voice used for speech generated by the Live model.
203 |
# File 'lib/openai/models/live/session_resource.rb', line 203 optional :output, -> { OpenAI::Live::SessionResource::Audio::Output } |
Instance Method Details
#to_hash ⇒ { ?format_: OpenAI::Models::Live::audio_format, ?output: OpenAI::Live::SessionResource::Audio::Output }
231 232 233 234 |
# File 'sig/openai/models/live/session_resource.rbs', line 231
def to_hash: -> {
?format_: OpenAI::Models::Live::audio_format,
?output: OpenAI::Live::SessionResource::Audio::Output
}
|