Class RealtimeServerEvent.OutputAudioBufferStarted
-
- All Implemented Interfaces:
public final class RealtimeServerEvent.OutputAudioBufferStarted
WebRTC Only: Emitted when the server begins streaming audio to the client. This event is emitted after an audio content part has been added (
response.content_part.added
) to the response. Learn more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeServerEvent.OutputAudioBufferStarted.Builder
A builder for OutputAudioBufferStarted.
-
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.started
.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.OutputAudioBufferStarted.Builder
toBuilder()
final RealtimeServerEvent.OutputAudioBufferStarted
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeServerEvent.OutputAudioBufferStarted.Builder
builder()
Returns a mutable builder for constructing an instance of OutputAudioBufferStarted. -
-
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.started
.Expected to always return the following:
JsonValue.from("output_audio_buffer.started")
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.OutputAudioBufferStarted.Builder toBuilder()
-
validate
final RealtimeServerEvent.OutputAudioBufferStarted validate()
-
builder
final static RealtimeServerEvent.OutputAudioBufferStarted.Builder builder()
Returns a mutable builder for constructing an instance of OutputAudioBufferStarted.
The following fields are required:
.eventId() .responseId()
-
-
-
-