pub struct VadConfig {
pub type: VadConfigType,
pub prefix_padding_ms: Option<u32>,
pub silence_duration_ms: Option<u32>,
pub threshold: Option<f32>,
}Fields§
§type: VadConfigType§prefix_padding_ms: Option<u32>Amount of audio to include before the VAD detected speech (in milliseconds). Default: 300.
silence_duration_ms: Option<u32>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. Default: 200.
threshold: Option<f32>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. Default: 0.5.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VadConfig
impl<'de> Deserialize<'de> for VadConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for VadConfig
Auto Trait Implementations§
impl Freeze for VadConfig
impl RefUnwindSafe for VadConfig
impl Send for VadConfig
impl Sync for VadConfig
impl Unpin for VadConfig
impl UnwindSafe for VadConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more