pub struct EnhancedVadParamsBuilder { /* private fields */ }Expand description
Builder for enhanced VAD parameters
Implementations§
Source§impl EnhancedVadParamsBuilder
impl EnhancedVadParamsBuilder
pub fn new() -> Self
pub fn threshold(self, threshold: f32) -> Self
pub fn max_segment_duration(self, seconds: f32) -> Self
pub fn merge_segments(self, merge: bool) -> Self
pub fn min_gap_ms(self, ms: i32) -> Self
pub fn speech_pad_ms(self, ms: i32) -> Self
pub fn build(self) -> EnhancedVadParams
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnhancedVadParamsBuilder
impl RefUnwindSafe for EnhancedVadParamsBuilder
impl Send for EnhancedVadParamsBuilder
impl Sync for EnhancedVadParamsBuilder
impl Unpin for EnhancedVadParamsBuilder
impl UnwindSafe for EnhancedVadParamsBuilder
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