pub struct VadParamsBuilder { /* private fields */ }Expand description
Builder for VadParams
Implementations§
Source§impl VadParamsBuilder
impl VadParamsBuilder
Sourcepub fn min_speech_duration_ms(self, ms: i32) -> Self
pub fn min_speech_duration_ms(self, ms: i32) -> Self
Set minimum speech duration in milliseconds
Sourcepub fn min_silence_duration_ms(self, ms: i32) -> Self
pub fn min_silence_duration_ms(self, ms: i32) -> Self
Set minimum silence duration in milliseconds
Sourcepub fn max_speech_duration_s(self, seconds: f32) -> Self
pub fn max_speech_duration_s(self, seconds: f32) -> Self
Set maximum speech duration in seconds
Sourcepub fn speech_pad_ms(self, ms: i32) -> Self
pub fn speech_pad_ms(self, ms: i32) -> Self
Set speech padding in milliseconds
Sourcepub fn samples_overlap(self, overlap: f32) -> Self
pub fn samples_overlap(self, overlap: f32) -> Self
Set samples overlap
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VadParamsBuilder
impl RefUnwindSafe for VadParamsBuilder
impl Send for VadParamsBuilder
impl Sync for VadParamsBuilder
impl Unpin for VadParamsBuilder
impl UnwindSafe for VadParamsBuilder
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