Package com.openai.models.beta.realtime
Class InputAudioBufferClearEvent
-
- All Implemented Interfaces:
public final class InputAudioBufferClearEvent
Send this event to clear the audio bytes in the buffer. The server will respond with an
input_audio_buffer.cleared
event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
InputAudioBufferClearEvent.Builder
A builder for InputAudioBufferClearEvent.
-
Method Summary
Modifier and Type Method Description final JsonValue
_type()
The event type, must be input_audio_buffer.clear
.final Optional<String>
eventId()
Optional client-generated ID used to identify this event. final JsonField<String>
_eventId()
Returns the raw JSON value of eventId. final Map<String, JsonValue>
_additionalProperties()
final InputAudioBufferClearEvent.Builder
toBuilder()
final InputAudioBufferClearEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static InputAudioBufferClearEvent.Builder
builder()
Returns a mutable builder for constructing an instance of InputAudioBufferClearEvent. -
-
Method Detail
-
_type
final JsonValue _type()
The event type, must be
input_audio_buffer.clear
.Expected to always return the following:
JsonValue.from("input_audio_buffer.clear")
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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final InputAudioBufferClearEvent.Builder toBuilder()
-
validate
final InputAudioBufferClearEvent validate()
-
builder
final static InputAudioBufferClearEvent.Builder builder()
Returns a mutable builder for constructing an instance of InputAudioBufferClearEvent.
-
-
-
-