xenon-wake - lightweight Hey xenon wake-word detector on ONNX
3 min readupdated
FrozenWolf/xenon-wake is a set of compact AI models for local wake-word recognition of the phrase "Hey xenon" on smartphones and computers. The models run directly on-device via ONNX Runtime (a runtime engine for fast AI model execution) in a single thread without cloud requests. The architecture splits into two stages: an ultra-lightweight TCN convolutional network continuously listens to the microphone, while a more accurate Conformer runs only upon its trigger, saving battery and resources. This pipeline serves developers of voice assistants and smart devices who need an offline and resource-efficient wake-word engine.
Key features
- Two-stage cascade:
frontend.onnx(1.1 MB) extracts 40 log-mel bands every 10 ms, after which the continuously active stage 1 passes a signal to stage 2 only upon suspicion of the wake phrase. - Two variants for different hardware: standard devices use
tcn-l.onnx(317 KB), while weaker hardware uses the lightweighttcn-m.onnx(167 KB, about 42k weights). - Accurate re-verification: at the second stage,
conformer.onnx(6.3 MB) analyzes the last 2 seconds of audio (198 frames) across multiple shifted windows. - Synthetic training: the model was trained on 39,214 synthesized recordings of "Hey xenon" (Google Cloud TTS, Piper, Kokoro-82M) and background noise without a single real human voice saying this phrase.
What you can do
- Embed into a mobile or desktop assistant: connect the ONNX model chain via
thresholds.jsonfor background activation of an assistant in a single CPU thread. - Add owner verification: supplement the cascade with a separate speaker embedding model so the system responds only to the owner's voice (as intended in the xenon project).
- Adjust the false positive balance: change the second stage threshold in
thresholds.jsonfrom 2.25 to 3.25, reducing false activations by more than half.
Example
mic, 16 kHz mono
→ frontend.onnx 40 sound bands every 10 ms
→ stage 1 (tcn) one score every 20 ms, always on
→ stage 2 (conformer) looks at the last 2 s, only when stage 1 fires
→ owner check does it sound like the person who taught xenon their voice?Read more
DetailsFalse positives: 0.63 per day on 345 hours of test speech for
tcn-l and 0.7 per day for tcn-m (prior to speaker voice verification).At a second-stage threshold of 3.25 instead of 2.25, false positives drop to 0.28 per day at the cost of increased misses.
Misses on clean "Hey xenon" recordings: about 0.2% in silence; accuracy on real voices in noise and at a distance has not yet been tested.
Weights license: CC BY-SA 4.0 (subject to Google Cloud TTS and Gemini API restrictions on creating competing services).










Comments