RealtimeServerEventError
objectReturned when an error occurs, which could be a client problem or a server
problem. Most errors are recoverable and the session will stay open, we
recommend to implementors to monitor and log error messages by default.
The unique ID of the server event.
The event type, must be error.
Allowed values:error
Details of the error.
Show Child Parameters
RealtimeServerEventInputAudioBufferCleared
objectReturned when the input audio buffer is cleared by the client with a
input_audio_buffer.clear event.
The unique ID of the server event.
The event type, must be input_audio_buffer.cleared.
Allowed values:input_audio_buffer.cleared
RealtimeServerEventInputAudioBufferCommitted
objectReturned 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.
The unique ID of the server event.
The event type, must be input_audio_buffer.committed.
Allowed values:input_audio_buffer.committed
The ID of the preceding item after which the new item will be inserted.
The ID of the user message item that will be created.
RealtimeServerEventInputAudioBufferSpeechStarted
objectSent by the server when in server_vad mode to indicate that speech has been
detected in the audio buffer. This can happen any time audio is added to the
buffer (unless speech is already detected). The client may want to use this
event to interrupt audio playback or provide visual feedback to the user.
The client should expect to receive a input_audio_buffer.speech_stopped event
when speech stops. The item_id property is the ID of the user message item
that will be created when speech stops and will also be included in the
input_audio_buffer.speech_stopped event (unless the client manually commits
the audio buffer during VAD activation).
The unique ID of the server event.
The event type, must be input_audio_buffer.speech_started.
Allowed values:input_audio_buffer.speech_started
Milliseconds from the start of all audio written to the buffer during the
session when speech was first detected. This will correspond to the
beginning of audio sent to the model, and thus includes the
prefix_padding_ms configured in the Session.
The ID of the user message item that will be created when speech stops.
RealtimeServerEventInputAudioBufferSpeechStopped
objectReturned in server_vad mode when the server detects the end of speech in
the audio buffer. The server will also send an conversation.item.created
event with the user message item that is created from the audio buffer.
The unique ID of the server event.
The event type, must be input_audio_buffer.speech_stopped.
Allowed values:input_audio_buffer.speech_stopped
Milliseconds since the session started when speech stopped. This will
correspond to the end of audio sent to the model, and thus includes the
min_silence_duration_ms configured in the Session.
The ID of the user message item that will be created.