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