Class RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder
-
- All Implemented Interfaces:
public final class RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.BuilderA builder for SemanticVad.
-
-
Method Summary
-
-
Method Detail
-
type
final RealtimeTranscriptionSessionAudioInputTurnDetection.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 RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder createResponse(Boolean createResponse)
Whether or not to automatically generate a response when a VAD stop event occurs.
-
createResponse
final RealtimeTranscriptionSessionAudioInputTurnDetection.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 RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder eagerness(RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Eagerness eagerness)
Used only for
semantic_vadmode. The eagerness of the model to respond.lowwill wait longer for the user to continue speaking,highwill respond more quickly.autois the default and is equivalent tomedium.low,medium, andhighhave max timeouts of 8s, 4s, and 2s respectively.
-
eagerness
final RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder eagerness(JsonField<RealtimeTranscriptionSessionAudioInputTurnDetection.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 RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder interruptResponse(Boolean interruptResponse)
Whether or not to automatically interrupt any ongoing response with output to the default conversation (i.e.
conversationofauto) when a VAD start event occurs.
-
interruptResponse
final RealtimeTranscriptionSessionAudioInputTurnDetection.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 RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTranscriptionSessionAudioInputTurnDetection.SemanticVad build()
Returns an immutable instance of SemanticVad.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-