Class RealtimeAudioInputTurnDetection.SemanticVad.Builder
-
- All Implemented Interfaces:
public final class RealtimeAudioInputTurnDetection.SemanticVad.Builder
A builder for SemanticVad.
-
-
Method Summary
-
-
Method Detail
-
type
final RealtimeAudioInputTurnDetection.SemanticVad.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("semantic_vad")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
createResponse
final RealtimeAudioInputTurnDetection.SemanticVad.Builder createResponse(Boolean createResponse)
Whether or not to automatically generate a response when a VAD stop event occurs.
-
createResponse
final RealtimeAudioInputTurnDetection.SemanticVad.Builder createResponse(JsonField<Boolean> createResponse)
Sets Builder.createResponse to an arbitrary JSON value.
You should usually call Builder.createResponse with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
eagerness
final RealtimeAudioInputTurnDetection.SemanticVad.Builder eagerness(RealtimeAudioInputTurnDetection.SemanticVad.Eagerness eagerness)
Used only for
semantic_vad
mode. The eagerness of the model to respond.low
will wait longer for the user to continue speaking,high
will respond more quickly.auto
is the default and is equivalent tomedium
.low
,medium
, andhigh
have max timeouts of 8s, 4s, and 2s respectively.
-
eagerness
final RealtimeAudioInputTurnDetection.SemanticVad.Builder eagerness(JsonField<RealtimeAudioInputTurnDetection.SemanticVad.Eagerness> eagerness)
Sets Builder.eagerness to an arbitrary JSON value.
You should usually call Builder.eagerness with a well-typed Eagerness value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
interruptResponse
final RealtimeAudioInputTurnDetection.SemanticVad.Builder interruptResponse(Boolean interruptResponse)
Whether or not to automatically interrupt any ongoing response with output to the default conversation (i.e.
conversation
ofauto
) when a VAD start event occurs.
-
interruptResponse
final RealtimeAudioInputTurnDetection.SemanticVad.Builder interruptResponse(JsonField<Boolean> interruptResponse)
Sets Builder.interruptResponse to an arbitrary JSON value.
You should usually call Builder.interruptResponse with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeAudioInputTurnDetection.SemanticVad.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeAudioInputTurnDetection.SemanticVad.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeAudioInputTurnDetection.SemanticVad.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeAudioInputTurnDetection.SemanticVad.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeAudioInputTurnDetection.SemanticVad.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeAudioInputTurnDetection.SemanticVad build()
Returns an immutable instance of SemanticVad.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-