An open-source audio wake word (or phrase) detection framework with a focus on performance and simplicity
open sourceApache-2.0self-hostablefree
openWakeWord is an open source Python library for detecting wake words and phrases in audio, for building voice-enabled applications and interfaces. It ships pre-trained models for phrases such as "alexa", "hey jarvis" and "hey mycroft", runs on ONNX Runtime or TensorFlow Lite, and processes audio in 80 ms frames, returning a confidence score for each; one Raspberry Pi 3 core can run 15 to 20 models at once in real time. All models share a frozen speech embedding backbone from Google, so a new wake word is trained as a small classifier on 100% synthetic speech, with a Google Colab notebook that makes one in under an hour. Optional Speex noise suppression, Silero voice activity detection and per-speaker verifier models cut false activations. The code is Apache-2.0, but the included pre-trained models are CC BY-NC-SA 4.0.
Problems it solves
- add a custom wake word to my voice assistant without sending audio to the cloud
- detect 'hey jarvis' on a Raspberry Pi in real time
- train a wake word for my own phrase without recording hundreds of people
- my local voice assistant keeps triggering on TV and music
- a free alternative to Picovoice Porcupine for wake word detection in Python
- listen for a spoken command like 'set a timer' with a small on-device model
Features
- pre-trained English wake word models
- ONNX Runtime and TensorFlow Lite inference
- 80 ms frame streaming with a score per frame
- 15-20 models at once on one Raspberry Pi 3 core
- train new models on synthetic speech, with a Google Colab notebook
- Speex noise suppression
- Silero voice activity detection
- custom verifier models for specific voices
- bulk prediction over WAV files
Limitations
- Only English wake word models are supported.1
- The included pre-trained models are licensed CC BY-NC-SA 4.0, which doesn't allow commercial use; only the code is Apache-2.0.1
- It's likely too large for very low-power edge devices and microcontrollers.1
- Speex noise suppression works only on x86 and Arm64 Linux.1
- There's no official Docker image or JavaScript version.1
Capabilities
| Has official SDKs | plan not known |
|---|
Alternatives
The same job
These do what openWakeWord does.
- Linux Voice Assistant Voice satellite for Home Assistant using the ESPHome protocol
- Piper A fast and local neural text-to-speech engine
- Speech-to-Phrase Fast and personalized local speech-to-text