pub struct VadConfig {
pub type: VadConfigType,
pub prefix_padding_ms: Option<i64>,
pub silence_duration_ms: Option<i64>,
pub threshold: Option<Number>,
}
Fields§
§type: VadConfigType
Must be set to server_vad
to enable manual chunking using server side VAD.
prefix_padding_ms: Option<i64>
Amount of audio to include before the VAD detected speech (in milliseconds).
silence_duration_ms: Option<i64>
Duration of silence to detect speech stop (in milliseconds). With shorter values the model will respond more quickly, but may jump in on short pauses from the user.
threshold: Option<Number>
Sensitivity threshold (0.0 to 1.0) for voice activity detection. A higher threshold will require louder audio to activate the model, and thus might perform better in noisy environments.
Implementations§
Source§impl VadConfig
impl VadConfig
Sourcepub fn builder() -> VadConfigBuilder<((), (), (), ())>
pub fn builder() -> VadConfigBuilder<((), (), (), ())>
Create a builder for building VadConfig
.
On the builder, call .r#type(...)
, .prefix_padding_ms(...)
(optional), .silence_duration_ms(...)
(optional), .threshold(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of VadConfig
.