Class SessionCreateResponse.TurnDetection
- 
                    
                    - All Implemented Interfaces:
 
 public final class SessionCreateResponse.TurnDetectionConfiguration for turn detection. Can be set to nullto turn off. 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.
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classSessionCreateResponse.TurnDetection.BuilderA builder for TurnDetection. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<Long>prefixPaddingMs()Amount of audio to include before the VAD detected speech (in milliseconds). final Optional<Long>silenceDurationMs()Duration of silence to detect speech stop (in milliseconds). final Optional<Double>threshold()Activation threshold for VAD (0.0 to 1.0), this defaults to 0.5. final Optional<String>type()Type of turn detection, only server_vadis currently supported.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<String>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final SessionCreateResponse.TurnDetection.BuildertoBuilder()final SessionCreateResponse.TurnDetectionvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionCreateResponse.TurnDetection.Builderbuilder()Returns a mutable builder for constructing an instance of TurnDetection. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        prefixPaddingMsfinal Optional<Long> prefixPaddingMs() Amount of audio to include before the VAD detected speech (in milliseconds). Defaults to 300ms. 
 - 
                                        silenceDurationMsfinal Optional<Long> silenceDurationMs() 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() 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. 
 - 
                                        _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<String> _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 SessionCreateResponse.TurnDetection.Builder toBuilder() 
 - 
                                        validatefinal SessionCreateResponse.TurnDetection validate() 
 - 
                                        builderfinal static SessionCreateResponse.TurnDetection.Builder builder() Returns a mutable builder for constructing an instance of TurnDetection. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-