Class RealtimeServerEvent.OutputAudioBufferStopped
-
- All Implemented Interfaces:
public final class RealtimeServerEvent.OutputAudioBufferStopped
WebRTC Only: Emitted when the output audio buffer has been completely drained on the server, and no more audio is forthcoming. This event is emitted after the full response data has been sent to the client (
response.done
). Learn more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeServerEvent.OutputAudioBufferStopped.Builder
A builder for OutputAudioBufferStopped.
-
Method Summary
Modifier and Type Method Description final String
eventId()
The unique ID of the server event. final String
responseId()
The unique ID of the response that produced the audio. final JsonValue
_type()
The event type, must be output_audio_buffer.stopped
.final JsonField<String>
_eventId()
Returns the raw JSON value of eventId. final JsonField<String>
_responseId()
Returns the raw JSON value of responseId. final Map<String, JsonValue>
_additionalProperties()
final RealtimeServerEvent.OutputAudioBufferStopped.Builder
toBuilder()
final RealtimeServerEvent.OutputAudioBufferStopped
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeServerEvent.OutputAudioBufferStopped.Builder
builder()
Returns a mutable builder for constructing an instance of OutputAudioBufferStopped. -
-
Method Detail
-
responseId
final String responseId()
The unique ID of the response that produced the audio.
-
_type
final JsonValue _type()
The event type, must be
output_audio_buffer.stopped
.Expected to always return the following:
JsonValue.from("output_audio_buffer.stopped")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_responseId
final JsonField<String> _responseId()
Returns the raw JSON value of responseId.
Unlike responseId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeServerEvent.OutputAudioBufferStopped.Builder toBuilder()
-
validate
final RealtimeServerEvent.OutputAudioBufferStopped validate()
-
builder
final static RealtimeServerEvent.OutputAudioBufferStopped.Builder builder()
Returns a mutable builder for constructing an instance of OutputAudioBufferStopped.
The following fields are required:
.eventId() .responseId()
-
-
-
-