Class InputAudioBufferTimeoutTriggered
-
- All Implemented Interfaces:
public final class InputAudioBufferTimeoutTriggered
Returned when the server VAD timeout is triggered for the input audio buffer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
InputAudioBufferTimeoutTriggered.Builder
A builder for InputAudioBufferTimeoutTriggered.
-
Method Summary
Modifier and Type Method Description final Long
audioEndMs()
Millisecond offset where speech ended within the buffered audio. final Long
audioStartMs()
Millisecond offset where speech started within the buffered audio. final String
eventId()
The unique ID of the server event. final String
itemId()
The ID of the item associated with this segment. final JsonValue
_type()
The event type, must be input_audio_buffer.timeout_triggered
.final JsonField<Long>
_audioEndMs()
Returns the raw JSON value of audioEndMs. final JsonField<Long>
_audioStartMs()
Returns the raw JSON value of audioStartMs. final JsonField<String>
_eventId()
Returns the raw JSON value of eventId. final JsonField<String>
_itemId()
Returns the raw JSON value of itemId. final Map<String, JsonValue>
_additionalProperties()
final InputAudioBufferTimeoutTriggered.Builder
toBuilder()
final InputAudioBufferTimeoutTriggered
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static InputAudioBufferTimeoutTriggered.Builder
builder()
Returns a mutable builder for constructing an instance of InputAudioBufferTimeoutTriggered. -
-
Method Detail
-
audioEndMs
final Long audioEndMs()
Millisecond offset where speech ended within the buffered audio.
-
audioStartMs
final Long audioStartMs()
Millisecond offset where speech started within the buffered audio.
-
_type
final JsonValue _type()
The event type, must be
input_audio_buffer.timeout_triggered
.Expected to always return the following:
JsonValue.from("input_audio_buffer.timeout_triggered")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_audioEndMs
final JsonField<Long> _audioEndMs()
Returns the raw JSON value of audioEndMs.
Unlike audioEndMs, this method doesn't throw if the JSON field has an unexpected type.
-
_audioStartMs
final JsonField<Long> _audioStartMs()
Returns the raw JSON value of audioStartMs.
Unlike audioStartMs, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_itemId
final JsonField<String> _itemId()
Returns the raw JSON value of itemId.
Unlike itemId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final InputAudioBufferTimeoutTriggered.Builder toBuilder()
-
validate
final InputAudioBufferTimeoutTriggered validate()
-
builder
final static InputAudioBufferTimeoutTriggered.Builder builder()
Returns a mutable builder for constructing an instance of InputAudioBufferTimeoutTriggered.
The following fields are required:
.audioEndMs() .audioStartMs() .eventId() .itemId()
-
-
-
-