pub struct WakeWordDetector { /* private fields */ }Expand description
Wake word detector (STUB implementation).
Real implementation will use rustpotter for “Hey Weft” detection. This stub provides the API surface for integration testing.
Implementations§
Source§impl WakeWordDetector
impl WakeWordDetector
Sourcepub fn new(config: WakeWordConfig) -> Result<Self, PluginError>
pub fn new(config: WakeWordConfig) -> Result<Self, PluginError>
Create a new wake word detector with the given configuration.
Sourcepub fn process_frame(&mut self, _samples: &[i16]) -> bool
pub fn process_frame(&mut self, _samples: &[i16]) -> bool
Process a single audio frame. Returns true if wake word detected.
STUB: Always returns false.
Sourcepub fn start(&mut self) -> WakeWordEvent
pub fn start(&mut self) -> WakeWordEvent
Start listening for the wake word.
Sourcepub fn stop(&mut self) -> WakeWordEvent
pub fn stop(&mut self) -> WakeWordEvent
Stop listening for the wake word.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if the detector is currently running.
Sourcepub fn config(&self) -> &WakeWordConfig
pub fn config(&self) -> &WakeWordConfig
Get the current configuration.
Auto Trait Implementations§
impl Freeze for WakeWordDetector
impl RefUnwindSafe for WakeWordDetector
impl Send for WakeWordDetector
impl Sync for WakeWordDetector
impl Unpin for WakeWordDetector
impl UnsafeUnpin for WakeWordDetector
impl UnwindSafe for WakeWordDetector
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