pub struct VadOptions {
pub threshold: f64,
pub neg_threshold: f64,
pub min_speech_ms: i32,
pub min_silence_ms: i32,
pub speech_pad_ms: i32,
pub max_speech_ms: i32,
}Expand description
Probabilities -> speech segments (VadSession::run only). Fields and
defaults are those of Silero’s get_speech_timestamps.
Fields§
§threshold: f64A frame with p >= threshold is speech (default 0.5). [0, 1].
neg_threshold: f64Inside speech, a frame with p < neg_threshold is silence. Negative
(the default, -1) means max(threshold - 0.15, 0.01); otherwise
[0, threshold].
min_speech_ms: i32Segments of at most this length are dropped (default 250), except
those split by max_speech_ms. Durations must be nonnegative.
min_silence_ms: i32Silence this long ends a segment (default 100).
speech_pad_ms: i32Padding on both sides of each segment (default 30).
max_speech_ms: i32Segments longer than this are split; 0 (the default) = no limit.
Trait Implementations§
Source§impl Clone for VadOptions
impl Clone for VadOptions
Source§impl Debug for VadOptions
impl Debug for VadOptions
Source§impl Default for VadOptions
impl Default for VadOptions
Source§impl PartialEq for VadOptions
impl PartialEq for VadOptions
impl StructuralPartialEq for VadOptions
Auto Trait Implementations§
impl Freeze for VadOptions
impl RefUnwindSafe for VadOptions
impl Send for VadOptions
impl Sync for VadOptions
impl Unpin for VadOptions
impl UnsafeUnpin for VadOptions
impl UnwindSafe for VadOptions
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