pub struct WakeConfig {
pub enabled: bool,
pub phrase: String,
pub sensitivity: f32,
pub model_path: Option<String>,
}Expand description
Wake word detection configuration.
Fields§
§enabled: boolEnable wake word detection.
phrase: StringWake word phrase (e.g. “hey weft”).
sensitivity: f32Detection sensitivity (0.0-1.0).
model_path: Option<String>Custom wake word model path.
Trait Implementations§
Source§impl Clone for WakeConfig
impl Clone for WakeConfig
Source§fn clone(&self) -> WakeConfig
fn clone(&self) -> WakeConfig
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 WakeConfig
impl Debug for WakeConfig
Source§impl Default for WakeConfig
impl Default for WakeConfig
Source§impl<'de> Deserialize<'de> for WakeConfig
impl<'de> Deserialize<'de> for WakeConfig
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 WakeConfig
impl RefUnwindSafe for WakeConfig
impl Send for WakeConfig
impl Sync for WakeConfig
impl Unpin for WakeConfig
impl UnsafeUnpin for WakeConfig
impl UnwindSafe for WakeConfig
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