aria_kit/wake_word/mod.rs
1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2pub enum WakeWordMatch {
3 NoMatch,
4 Detected,
5}
6
7pub trait WakeWordDetector {
8 type Error: std::error::Error + Send + Sync + 'static;
9
10 fn detect(&mut self, canonical_samples: &[i16]) -> Result<WakeWordMatch, Self::Error>;
11
12 fn reset(&mut self);
13}