oww-rs

Crates.iooww-rs
lib.rsoww-rs
version0.2.0
created_at2025-10-01 06:15:24.179545+00
updated_at2025-10-01 16:25:51.496308+00
descriptionMinimalistic version of the OpenWakeWord inference in Rust and ONNX runtime
homepage
repository
max_upload_size
id1862186
size3,770,191
Laco Skokan (skoky)

documentation

README

Build & test

Minimalistic version of the OpenWakeWord inference in Rust and ONNX runtime

This is extracted source code from the OpenWakeWord providing simplified code for inference of onnx models only. The Python code for inference is converted to Rust for better wake word detection performance. The inference uses ORT supporting all major platforms. For detection the alexa.onnx model is used as a sample from the OpenWakeWord project. Simly saying "Alexa" is detected from microphone as implemented in the examples/cpal_test.rs

The implementation uses cpal opensourced audio recorder crate. This is pure Rust crate for accessing microphones on all major platforms.

See the original OpenWakeWord lib for more details for pre-trained models or training new custom model. The training stage is not included in this repo and the OpenWakeWord's original steps should be used to generate new model triggering on a custom wake word.

Running like this

cargo run --example cpal_test

Running tests:

cargo test

Contribution

Make an issue / PR etc.

Licence

MIT license, see LICENSE

Commit count: 0

cargo fmt