class

OpenAI::RealtimeBetaClientEventOutputAudioBufferClear

Inherits JSON::Serializable < Reference < Object

WebRTC/SIP Only: Emit to cut off the current audio response. This will trigger the server to stop generating audio and emit a output_audio_buffer.cleared event. This event should be preceded by a response.cancel client event to stop the generation of the current response. Learn more.

Constructors

new(event_id : String | Nil = nil, type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

event_id

The unique ID of the client event used for error handling.

Source
event_id=(event_id : String | Nil)

The unique ID of the client event used for error handling.

Source
type_value

The event type, must be output_audio_buffer.clear.

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

The event type, must be output_audio_buffer.clear.

Source