Class: OpenAI::Realtime::ConnectionResources::OutputAudioBuffer

Inherits:
Base
  • Object
show all
Defined in:
lib/openai/helpers/realtime/connection_resources.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from OpenAI::Realtime::ConnectionResources::Base

Instance Method Details

#clear(event_id: nil) ⇒ Object



122
123
124
125
126
# File 'lib/openai/helpers/realtime/connection_resources.rb', line 122

def clear(event_id: nil)
  @connection.send_event(
    compact_event(type: :"output_audio_buffer.clear", event_id: event_id)
  )
end