Class: OpenAI::Models::Live::InputAudioAppendEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::InputAudioAppendEvent
- Defined in:
- lib/openai/models/live/input_audio_append_event.rb,
sig/openai/models/live/input_audio_append_event.rbs
Instance Attribute Summary collapse
-
#audio ⇒ String
Base64-encoded raw audio in the startup-selected format, without a WAV or other container header.
-
#event_id ⇒ String?
Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
-
#type ⇒ :"session.input_audio.append"
The Live client event type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(audio:, event_id: nil, type: :"session.input_audio.append") ⇒ InputAudioAppendEvent
constructor
A new instance of InputAudioAppendEvent.
- #to_hash ⇒ { audio: String, ?type: :"session.input_audio.append", ?event_id: String? }
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(audio:, event_id: nil, type: :"session.input_audio.append") ⇒ InputAudioAppendEvent
Returns a new instance of InputAudioAppendEvent.
|
|
# File 'lib/openai/models/live/input_audio_append_event.rb', line 30
|
Instance Attribute Details
#audio ⇒ String
Base64-encoded raw audio in the startup-selected format, without a WAV or other container header. Primary WebSocket only; media transports use their audio track. Audio appends have no acknowledgment. Reflected sideband server events reuse this event type and audio key, with no timestamps or event_id; their audio is always mono PCM16LE at 24 kHz.
15 |
# File 'lib/openai/models/live/input_audio_append_event.rb', line 15 required :audio, String |
#event_id ⇒ String?
Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
28 |
# File 'lib/openai/models/live/input_audio_append_event.rb', line 28 optional :event_id, String, nil?: true |
#type ⇒ :"session.input_audio.append"
The Live client event type. Always session.input_audio.append.
21 |
# File 'lib/openai/models/live/input_audio_append_event.rb', line 21 required :type, const: :"session.input_audio.append" |
Instance Method Details
#to_hash ⇒ { audio: String, ?type: :"session.input_audio.append", ?event_id: String? }
43 44 45 46 47 |
# File 'sig/openai/models/live/input_audio_append_event.rbs', line 43
def to_hash: -> {
audio: String,
?type: :"session.input_audio.append",
?event_id: String?
}
|