pub struct VoiceActivityDetector { /* private fields */ }
Expand description
A voice activity detector session.
Implementations§
source§impl VoiceActivityDetector
impl VoiceActivityDetector
sourcepub fn predict<S, I>(&mut self, samples: I) -> f32where
S: Sample,
I: IntoIterator<Item = S>,
pub fn predict<S, I>(&mut self, samples: I) -> f32where
S: Sample,
I: IntoIterator<Item = S>,
Predicts the existence of speech in a single iterable of audio.
The samples iterator will be padded if it is too short, or truncated if it is too long.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VoiceActivityDetector
impl RefUnwindSafe for VoiceActivityDetector
impl Send for VoiceActivityDetector
impl Sync for VoiceActivityDetector
impl Unpin for VoiceActivityDetector
impl UnwindSafe for VoiceActivityDetector
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