Rustpotter
A personal keywords spotter written in Rust
Description
This project allows detect concrete words on and audio stream, to do so it generates a set of features from some word audio samples to later compare them with the features generated from a live audio stream, to calculate the probability of a match.
The features can be loaded from a previous generated model file or extracted from the samples before start the live streaming.
Some examples:
Create keyword model
let mut detector_builder = new;
let mut word_detector = detector_builder.build;
let name = Stringfrom;
let path = Stringfrom;
word_detector.add_keyword;
match word_detector.create_wakeword_model ;
Spot keyword:
let mut detector_builder = new;
detector_builder.set_threshold;
let mut word_detector = detector_builder.build;
let result = word_detector.add_keyword_from_model;
if result.is_err
while true
References
This project is mostly a port of the project node-personal-wakeword with some utils ported from Gist so credit about the implementation is for those projects. Also to this medium article about wake word detection
Motivation
The motivation behind this project is to learn about audio analysis and Rust, also to have access to an open source personal wakeword spotter to use in other home projects. Feel free to propose or PR any improvements or fixes.