pub struct BackendInputVad { /* private fields */ }Expand description
Incremental VAD over arbitrary PCM16 byte chunks.
Implementations§
Source§impl BackendInputVad
impl BackendInputVad
Sourcepub fn new(config: VadConfig) -> Self
pub fn new(config: VadConfig) -> Self
Create a backend input VAD with explicit detector configuration.
Sourcepub fn process_pcm_bytes(&mut self, bytes: &[u8]) -> Vec<VadEvent>
pub fn process_pcm_bytes(&mut self, bytes: &[u8]) -> Vec<VadEvent>
Process arbitrary little-endian PCM16 bytes and return speech edge events.
Sourcepub fn snapshot(&self) -> BackendVadSnapshot
pub fn snapshot(&self) -> BackendVadSnapshot
Return a diagnostics snapshot suitable for UI/devtools display.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackendInputVad
impl RefUnwindSafe for BackendInputVad
impl Send for BackendInputVad
impl !Sync for BackendInputVad
impl Unpin for BackendInputVad
impl UnwindSafe for BackendInputVad
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