Class RealtimeSession.TurnDetection.SemanticVad.Builder
-
- All Implemented Interfaces:
public final class RealtimeSession.TurnDetection.SemanticVad.Builder
A builder for SemanticVad.
-
-
Method Summary
-
-
Method Detail
-
type
final RealtimeSession.TurnDetection.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 RealtimeSession.TurnDetection.SemanticVad.Builder createResponse(Boolean createResponse)
Whether or not to automatically generate a response when a VAD stop event occurs.
-
createResponse
final RealtimeSession.TurnDetection.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 RealtimeSession.TurnDetection.SemanticVad.Builder eagerness(RealtimeSession.TurnDetection.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 RealtimeSession.TurnDetection.SemanticVad.Builder eagerness(JsonField<RealtimeSession.TurnDetection.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 RealtimeSession.TurnDetection.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 RealtimeSession.TurnDetection.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 RealtimeSession.TurnDetection.SemanticVad.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeSession.TurnDetection.SemanticVad.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeSession.TurnDetection.SemanticVad.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeSession.TurnDetection.SemanticVad.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeSession.TurnDetection.SemanticVad.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeSession.TurnDetection.SemanticVad build()
Returns an immutable instance of SemanticVad.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-