pub struct DebounceConfig {
pub threshold: f32,
pub start_windows: u32,
pub stop_windows: u32,
}Expand description
Threshold and hangover for Debounced.
Fields§
§threshold: f32Probability at or above which a window counts as speech. The default is
0.5, silero’s conventional midpoint.
start_windows: u32Consecutive speech windows required to declare speech started. Small so onset is responsive.
stop_windows: u32Consecutive non-speech windows required to declare speech stopped. Larger, so a brief pause mid-utterance does not clip it.
Trait Implementations§
Source§impl Clone for DebounceConfig
impl Clone for DebounceConfig
Source§fn clone(&self) -> DebounceConfig
fn clone(&self) -> DebounceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DebounceConfig
Source§impl Debug for DebounceConfig
impl Debug for DebounceConfig
Source§impl Default for DebounceConfig
impl Default for DebounceConfig
Source§impl PartialEq for DebounceConfig
impl PartialEq for DebounceConfig
impl StructuralPartialEq for DebounceConfig
Auto Trait Implementations§
impl Freeze for DebounceConfig
impl RefUnwindSafe for DebounceConfig
impl Send for DebounceConfig
impl Sync for DebounceConfig
impl Unpin for DebounceConfig
impl UnsafeUnpin for DebounceConfig
impl UnwindSafe for DebounceConfig
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