RealtimeServerEventConversationItemTruncated
objectReturned when an earlier assistant audio message item is truncated by the
client with a conversation.item.truncate event. This event is used to
synchronize the server’s understanding of the audio with the client’s playback.
This action will truncate the audio and remove the server-side text transcript
to ensure there is no text in the context that hasn’t been heard by the user.
The unique ID of the server event.
The event type, must be conversation.item.truncated.
Allowed values:conversation.item.truncated
The ID of the assistant message item that was truncated.
The index of the content part that was truncated.
The duration up to which the audio was truncated, in milliseconds.
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.