Class InputAudioBufferSpeechStartedEvent.Builder
-
- All Implemented Interfaces:
public final class InputAudioBufferSpeechStartedEvent.Builder
A builder for InputAudioBufferSpeechStartedEvent.
-
-
Method Summary
-
-
Method Detail
-
audioStartMs
final InputAudioBufferSpeechStartedEvent.Builder audioStartMs(Long audioStartMs)
Milliseconds from the start of all audio written to the buffer during the session when speech was first detected. This will correspond to the beginning of audio sent to the model, and thus includes the
prefix_padding_ms
configured in the Session.
-
audioStartMs
final InputAudioBufferSpeechStartedEvent.Builder audioStartMs(JsonField<Long> audioStartMs)
Sets Builder.audioStartMs to an arbitrary JSON value.
You should usually call Builder.audioStartMs with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final InputAudioBufferSpeechStartedEvent.Builder eventId(String eventId)
The unique ID of the server event.
-
eventId
final InputAudioBufferSpeechStartedEvent.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
itemId
final InputAudioBufferSpeechStartedEvent.Builder itemId(String itemId)
The ID of the user message item that will be created when speech stops.
-
itemId
final InputAudioBufferSpeechStartedEvent.Builder itemId(JsonField<String> itemId)
Sets Builder.itemId to an arbitrary JSON value.
You should usually call Builder.itemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final InputAudioBufferSpeechStartedEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("input_audio_buffer.speech_started")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final InputAudioBufferSpeechStartedEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final InputAudioBufferSpeechStartedEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final InputAudioBufferSpeechStartedEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final InputAudioBufferSpeechStartedEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final InputAudioBufferSpeechStartedEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final InputAudioBufferSpeechStartedEvent build()
Returns an immutable instance of InputAudioBufferSpeechStartedEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.audioStartMs() .eventId() .itemId()
-
-
-
-