Struct BackendInputVad
pub struct BackendInputVad { /* private fields */ }Expand description
Incremental VAD over arbitrary PCM16 byte chunks.
Implementations§
§impl BackendInputVad
impl BackendInputVad
pub fn new(config: VadConfig) -> BackendInputVad
pub fn new(config: VadConfig) -> BackendInputVad
Create a backend input VAD with explicit detector configuration.
pub 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.
pub fn snapshot(&self) -> BackendVadSnapshot
pub fn snapshot(&self) -> BackendVadSnapshot
Return a diagnostics snapshot suitable for UI/devtools display.
Trait Implementations§
§impl Default for BackendInputVad
impl Default for BackendInputVad
§fn default() -> BackendInputVad
fn default() -> BackendInputVad
Returns the “default value” for a type. Read more
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