class

OpenAI::RealtimeServerEventOutputAudioBufferCleared

Inherits JSON::Serializable < Reference < Object

WebRTC/SIP Only: Emitted when the output audio buffer is cleared. This happens either in VAD mode when the user has interrupted (input_audio_buffer.speech_started), or when the client has emitted the output_audio_buffer.clear event to manually cut off the current audio response. Learn more.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, response_id : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

event_id

The unique ID of the server event.

Source
event_id=(event_id : String)

The unique ID of the server event.

Source
response_id

The unique ID of the response that produced the audio.

Source
response_id=(response_id : String)

The unique ID of the response that produced the audio.

Source
type_value

The event type, must be output_audio_buffer.cleared.

Source
type_value=(type_value : Hash(String, JSON::Any))

The event type, must be output_audio_buffer.cleared.

Source