aria-kit 0.7.0

Audio capture, transcription, synthesis, and voice-analysis contracts for local speech apps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum WakeWordMatch {
    NoMatch,
    Detected,
}

pub trait WakeWordDetector {
    type Error: std::error::Error + Send + Sync + 'static;

    fn detect(&mut self, canonical_samples: &[i16]) -> Result<WakeWordMatch, Self::Error>;

    fn reset(&mut self);
}