pub struct Config {
pub model_path: PathBuf,
pub wake_word: String,
pub probability_cutoff: f32,
pub sliding_window_size: usize,
pub feature_step_size_ms: u32,
pub metadata: ModelMetadata,
}Expand description
Validated model and detection configuration.
Fields§
§model_path: PathBuf§wake_word: String§probability_cutoff: f32§sliding_window_size: usize§feature_step_size_ms: u32§metadata: ModelMetadataImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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