Class RealtimeServerEvent.OutputAudioBufferStarted
-
- All Implemented Interfaces:
public final class RealtimeServerEvent.OutputAudioBufferStartedWebRTC 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 classRealtimeServerEvent.OutputAudioBufferStarted.BuilderA builder for OutputAudioBufferStarted.
-
Method Summary
Modifier and Type Method Description final StringeventId()The unique ID of the server event. final StringresponseId()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.BuildertoBuilder()final RealtimeServerEvent.OutputAudioBufferStartedvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeServerEvent.OutputAudioBufferStarted.Builderbuilder()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()
-
-
-
-