Class InputAudioBufferSpeechStoppedEvent
-
- All Implemented Interfaces:
public final class InputAudioBufferSpeechStoppedEvent
Returned in
server_vad
mode when the server detects the end of speech in the audio buffer. The server will also send anconversation.item.created
event with the user message item that is created from the audio buffer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
InputAudioBufferSpeechStoppedEvent.Builder
A builder for InputAudioBufferSpeechStoppedEvent.
-
Method Summary
Modifier and Type Method Description final Long
audioEndMs()
Milliseconds since the session started when speech stopped. final String
eventId()
The unique ID of the server event. final String
itemId()
The ID of the user message item that will be created. final JsonValue
_type()
The event type, must be input_audio_buffer.speech_stopped
.final JsonField<Long>
_audioEndMs()
Returns the raw JSON value of audioEndMs. 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 InputAudioBufferSpeechStoppedEvent.Builder
toBuilder()
final InputAudioBufferSpeechStoppedEvent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static InputAudioBufferSpeechStoppedEvent.Builder
builder()
Returns a mutable builder for constructing an instance of InputAudioBufferSpeechStoppedEvent. -
-
Method Detail
-
audioEndMs
final Long audioEndMs()
Milliseconds since the session started when speech stopped. This will correspond to the end of audio sent to the model, and thus includes the
min_silence_duration_ms
configured in the Session.
-
_type
final JsonValue _type()
The event type, must be
input_audio_buffer.speech_stopped
.Expected to always return the following:
JsonValue.from("input_audio_buffer.speech_stopped")
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.
-
_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 InputAudioBufferSpeechStoppedEvent.Builder toBuilder()
-
validate
final InputAudioBufferSpeechStoppedEvent validate()
-
builder
final static InputAudioBufferSpeechStoppedEvent.Builder builder()
Returns a mutable builder for constructing an instance of InputAudioBufferSpeechStoppedEvent.
The following fields are required:
.audioEndMs() .eventId() .itemId()
-
-
-
-