pub struct VadParams {
pub threshold: f32,
pub min_speech_duration_ms: i32,
pub min_silence_duration_ms: i32,
pub max_speech_duration_s: f32,
pub speech_pad_ms: i32,
pub samples_overlap: f32,
}Expand description
VAD parameters for speech detection
Fields§
§threshold: f32Probability threshold to consider as speech (0.0 - 1.0)
min_speech_duration_ms: i32Minimum duration for a valid speech segment (in milliseconds)
min_silence_duration_ms: i32Minimum duration of silence to split segments (in milliseconds)
max_speech_duration_s: f32Maximum speech duration before forcing a segment break (in seconds)
speech_pad_ms: i32Padding added before and after speech segments (in milliseconds)
samples_overlap: f32Overlap in seconds when copying audio samples from speech segment
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VadParams
impl RefUnwindSafe for VadParams
impl Send for VadParams
impl Sync for VadParams
impl Unpin for VadParams
impl UnwindSafe for VadParams
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