pub struct Vad { /* private fields */ }
Implementations§
Source§impl Vad
impl Vad
pub fn new(config: VadConfig, buffer_size_in_seconds: f32) -> Result<Self>
pub fn is_empty(&mut self) -> bool
pub fn front(&mut self) -> SpeechSegment
pub fn flush(&mut self)
pub fn accept_waveform(&mut self, samples: Vec<f32>)
pub fn pop(&mut self)
pub fn is_speech(&mut self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
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