pub struct VadConfig {
pub threshold_dbfs: f32,
pub hangover_blocks: u32,
pub gate: bool,
}Expand description
How the detector decides.
Fields§
§threshold_dbfs: f32A block at or above this RMS level (dBFS) is speech.
hangover_blocks: u32After the last speech block, stay “speaking” for this many more blocks.
gate: boolWhen true, blocks judged silent are emitted as digital silence; otherwise every block passes through unchanged.
Implementations§
Trait Implementations§
impl Copy for VadConfig
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 UnsafeUnpin 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