Class SessionCreateParams.TurnDetection
- 
                    
                    - All Implemented Interfaces:
 
 public final class SessionCreateParams.TurnDetectionConfiguration for turn detection, ether Server VAD or Semantic VAD. This can be set to nullto turn off, in which case the client must manually trigger model response. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech. Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classSessionCreateParams.TurnDetection.BuilderA builder for TurnDetection. public final classSessionCreateParams.TurnDetection.EagernessUsed 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.public final classSessionCreateParams.TurnDetection.TypeType of turn detection. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<Boolean>createResponse()Whether or not to automatically generate a response when a VAD stop event occurs. final Optional<SessionCreateParams.TurnDetection.Eagerness>eagerness()Used only for semantic_vadmode.final Optional<Boolean>interruptResponse()Whether or not to automatically interrupt any ongoing response with output to the default conversation (i.e. final Optional<Long>prefixPaddingMs()Used only for server_vadmode.final Optional<Long>silenceDurationMs()Used only for server_vadmode.final Optional<Double>threshold()Used only for server_vadmode.final Optional<SessionCreateParams.TurnDetection.Type>type()Type of turn detection. final JsonField<Boolean>_createResponse()Returns the raw JSON value of createResponse. final JsonField<SessionCreateParams.TurnDetection.Eagerness>_eagerness()Returns the raw JSON value of eagerness. final JsonField<Boolean>_interruptResponse()Returns the raw JSON value of interruptResponse. final JsonField<Long>_prefixPaddingMs()Returns the raw JSON value of prefixPaddingMs. final JsonField<Long>_silenceDurationMs()Returns the raw JSON value of silenceDurationMs. final JsonField<Double>_threshold()Returns the raw JSON value of threshold. final JsonField<SessionCreateParams.TurnDetection.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final SessionCreateParams.TurnDetection.BuildertoBuilder()final SessionCreateParams.TurnDetectionvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionCreateParams.TurnDetection.Builderbuilder()Returns a mutable builder for constructing an instance of TurnDetection. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        createResponsefinal Optional<Boolean> createResponse() Whether or not to automatically generate a response when a VAD stop event occurs. 
 - 
                                        eagernessfinal Optional<SessionCreateParams.TurnDetection.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.
 - 
                                        interruptResponsefinal Optional<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.
 - 
                                        prefixPaddingMsfinal Optional<Long> prefixPaddingMs() Used only for server_vadmode. Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms.
 - 
                                        silenceDurationMsfinal Optional<Long> silenceDurationMs() Used only for server_vadmode. Duration of silence to detect speech stop (in milliseconds). Defaults to 500ms. With shorter values the model will respond more quickly, but may jump in on short pauses from the user.
 - 
                                        thresholdfinal Optional<Double> threshold() Used only for server_vadmode. Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.
 - 
                                        typefinal Optional<SessionCreateParams.TurnDetection.Type> type() Type of turn detection. 
 - 
                                        _createResponsefinal JsonField<Boolean> _createResponse() Returns the raw JSON value of createResponse. Unlike createResponse, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _eagernessfinal JsonField<SessionCreateParams.TurnDetection.Eagerness> _eagerness() Returns the raw JSON value of eagerness. Unlike eagerness, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _interruptResponsefinal JsonField<Boolean> _interruptResponse() Returns the raw JSON value of interruptResponse. Unlike interruptResponse, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _prefixPaddingMsfinal JsonField<Long> _prefixPaddingMs() Returns the raw JSON value of prefixPaddingMs. Unlike prefixPaddingMs, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _silenceDurationMsfinal JsonField<Long> _silenceDurationMs() Returns the raw JSON value of silenceDurationMs. Unlike silenceDurationMs, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _thresholdfinal JsonField<Double> _threshold() Returns the raw JSON value of threshold. Unlike threshold, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _typefinal JsonField<SessionCreateParams.TurnDetection.Type> _type() Returns the raw JSON value of type. Unlike type, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal SessionCreateParams.TurnDetection.Builder toBuilder() 
 - 
                                        validatefinal SessionCreateParams.TurnDetection validate() 
 - 
                                        builderfinal static SessionCreateParams.TurnDetection.Builder builder() Returns a mutable builder for constructing an instance of TurnDetection. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-