pub struct WakeWordConfig {
pub model_path: PathBuf,
pub threshold: f32,
pub min_gap_frames: usize,
pub sample_rate: u32,
pub log_detections: bool,
}Expand description
Configuration for the wake word detector.
Fields§
§model_path: PathBufPath to the wake word model file (.rpw).
threshold: f32Detection threshold (0.0-1.0). Lower = more sensitive.
min_gap_frames: usizeMinimum gap between detections in frames.
sample_rate: u32Audio sample rate.
log_detections: boolWhether to log detection events.
Trait Implementations§
Source§impl Clone for WakeWordConfig
impl Clone for WakeWordConfig
Source§fn clone(&self) -> WakeWordConfig
fn clone(&self) -> WakeWordConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WakeWordConfig
impl Debug for WakeWordConfig
Source§impl Default for WakeWordConfig
impl Default for WakeWordConfig
Source§impl<'de> Deserialize<'de> for WakeWordConfig
impl<'de> Deserialize<'de> for WakeWordConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WakeWordConfig
impl RefUnwindSafe for WakeWordConfig
impl Send for WakeWordConfig
impl Sync for WakeWordConfig
impl Unpin for WakeWordConfig
impl UnsafeUnpin for WakeWordConfig
impl UnwindSafe for WakeWordConfig
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