#[non_exhaustive]pub enum VadEvent {
SpeechStart {
offset: usize,
},
SpeechEnd {
offset: usize,
},
Silence,
}Expand description
VAD processing result.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SpeechStart
Speech started at this sample offset.
SpeechEnd
Speech ended at this sample offset.
Silence
No speech detected in this frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VadEvent
impl RefUnwindSafe for VadEvent
impl Send for VadEvent
impl Sync for VadEvent
impl Unpin for VadEvent
impl UnsafeUnpin for VadEvent
impl UnwindSafe for VadEvent
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