class

OpenAI::RealtimeBetaServerEventInputAudioBufferCommitted

Inherits JSON::Serializable < Reference < Object

Returned when an input audio buffer is committed, either by the client or automatically in server VAD mode. The item_id property is the ID of the user message item that will be created, thus a conversation.item.created event will also be sent to the client.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, previous_item_id : RealtimeBetaServerEventInputAudioBufferCommittedPreviousItemId | Nil = nil, item_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
item_id

The ID of the user message item that will be created.

Source
item_id=(item_id : String)

The ID of the user message item that will be created.

Source
previous_item_id
Source
previous_item_id=(previous_item_id : RealtimeBetaServerEventInputAudioBufferCommittedPreviousItemId | Nil)
Source
type_value

The event type, must be input_audio_buffer.committed.

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

The event type, must be input_audio_buffer.committed.

Source