This release is a pre-release and may not be stable for production use.
ovos-ww-plugin-microwakeword
This plugin adds wake-word detection to OpenVoiceOS. It wraps microWakeWord TFLite streaming models from the ESPHome ecosystem.
Supported models
Models published at https://github.com/esphome/micro-wake-word-models:
model_name |
Phrase | v1 | v2 |
|---|---|---|---|
okay_nabu |
Okay Nabu | yes | yes |
hey_jarvis |
Hey Jarvis | yes | yes |
alexa |
Alexa | yes | yes |
hey_mycroft |
Hey Mycroft | no | yes |
vad |
Voice activity | no | yes |
The plugin also accepts any community .tflite model that follows the
microWakeWord input convention (1×stride×40 int8 log-mel features).
Installation
pip install ovos-ww-plugin-microwakeword
The package installs ai-edge-litert (on Linux x86_64) or tflite-runtime
(on other platforms) as a runtime dependency, along with pymicro-features
(the TFLite Micro audio frontend wrapper).
Usage
Add the plugin to the hotwords section of ~/.config/mycroft/mycroft.conf
(or ovos.conf), under your chosen wake word:
{
"hotwords": {
"okay nabu": {
"module": "ovos-ww-plugin-microwakeword",
"model_name": "okay_nabu",
"model_version": 1,
"probability_cutoff": 0.5,
"sliding_window_size": 10,
"refractory_frames": 40
}
}
}
Configuration reference
| Key | Type | Default | Description |
|---|---|---|---|
model |
str |
(auto) | Absolute path to a .tflite file, or an https:// URL. This setting takes precedence over model_name. |
model_name |
str |
okay_nabu |
Short name of an official ESPHome model. The plugin downloads it on first use. |
model_version |
int |
1 |
1 or 2. Selects the model subdirectory in the ESPHome repository. |
probability_cutoff |
float |
0.5 |
Dequantized probability threshold, in the range [0, 1]. A higher value gives fewer false positives. A lower value gives fewer missed detections. |
sliding_window_size |
int |
10 |
Number of consecutive inferences whose average must reach probability_cutoff before a detection fires. This mirrors the ESPHome sliding_window_size (v2) and sliding_window_average_size (v1) settings. |
refractory_frames |
int |
40 |
Inferences to ignore after a detection. This prevents double-fires. |
Technical details
Audio pipeline
16 kHz int16 PCM → pymicro-features (TFLite Micro audio frontend)
→ 40-dim log-mel feature slice per feature step (20 ms v1, 10 ms v2)
→ quantize to int8 (scale 0.102, zero-point −128)
→ TFLite interpreter (1×stride×40 → 1×1 uint8; stride 1 v1, 3 v2)
→ dequantize → float probability
→ sliding window average ≥ cutoff → detection
Model input signature
Inspected from okay_nabu.tflite (v1):
Input tensor: serving_default_input_audio:0 shape=[1, 1, 40] dtype=int8
quantization: scale=0.10196, zero_point=-128
Output tensor: StatefulPartitionedCall:0 shape=[1, 1] dtype=uint8
quantization: scale=0.00390625, zero_point=0
The model embeds its streaming RNN/convolution state as TFLite resource
variables. Each sequential interpreter.invoke() call advances the internal
state automatically, so the plugin does not manage an external state tensor.
interpreter.allocate_tensors() resets the streaming state. The plugin
calls it from reset().
ESPHome model compatibility notes
- v1 models use the original microWakeWord architecture, with quantized int8 input for the TFLite Micro audio frontend.
- v1 models take one feature slice per inference, with a 20 ms feature step.
- v2 models take three feature slices per inference (
[1, 3, 40] int8input), with a 10 ms feature step. The plugin reads the number of slices from the model's input shape. - The frontend always steps 10 ms. For a v1 model the plugin feeds it 20 ms chunks, and it does not read the second 10 ms of each chunk. This approximates ESPHome's 20 ms step; it is not the same.
- The plugin defaults (
probability_cutoff0.5,sliding_window_size10) make a v2 model wake on other speech. For a v2 model, copyprobability_cutoffandsliding_window_sizefrom the model's ESPHome manifest, for example 0.95 and 5 forhey_mycroft. - A model must accept
[1, stride, 40] int8input. Any model with a different input shape raisesValueErrorat load time. - A downloaded model is cached under a name that includes a hash of its URL, so the v1 and v2 models of one phrase never share a cache file.
- The audio frontend (
pymicro-features) is the same C implementation that ESPHome uses for on-device inference.
How to test
Unit tests (no model required)
pytest tests/test_unit.py -v
All 16 unit tests use a mocked interpreter and pass without network access.
End-to-end tests (downloads okay_nabu.tflite, requires edge-tts and ffmpeg)
pip install edge-tts
pytest tests/test_e2e.py -v -s
Expected output:
tests/test_e2e.py::TestE2EReal::test_negative_no_detection PASSED
[positive test] DETECTION FIRED on 'okay nabu' TTS audio. ← or SKIPPED with max_prob info
tests/test_e2e.py::TestE2EReal::test_positive_detection PASSED
The positive test skips rather than fails when TTS audio does not trigger the model, because the model is trained on human voice. The negative test ("hello world") is a hard assertion.
Related projects
Other OpenVoiceOS wake-word plugins:
- ovos-ww-plugin-openWakeWord
- ovos-ww-plugin-precise-onnx
- ovos-ww-plugin-vosk
- ovos-ww-plugin-wakeforge
- ovos-ww-plugin-wakewordlab
Credits
Developed by TigreGótico for OpenVoiceOS.
This project was funded through the NGI0 Commons Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement No 101135429.
License
Apache-2.0
Metadata
Release files for ovos-ww-plugin-microwakeword 0.0.2a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos_ww_plugin_microwakeword-0.0.2a1.tar.gz | 19.8 kB | Without provenance | Details for ovos_ww_plugin_microwakeword-0.0.2a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_ww_plugin_microwakeword-0.0.2a1-py3-none-any.whl | Python 3 | none | any | Details for ovos_ww_plugin_microwakeword-0.0.2a1-py3-none-any.whl |
Total release size: 34.4 kB
Release files / ovos_ww_plugin_microwakeword-0.0.2a1.tar.gz
| Download URL | ovos_ww_plugin_microwakeword-0.0.2a1.tar.gz |
|---|---|
| Size | 19.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e12a3ed03a2681ded797a2cb64d514bdad93fdfb066d333c1777dbbe8920943
|
|
BLAKE2b-256 checksum How to use checksums |
9386fc4d6e6e5af1e0713a718d59c30b9152333a66ba5f99b32dd4fe16030d9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / ovos_ww_plugin_microwakeword-0.0.2a1-py3-none-any.whl
| Download URL | ovos_ww_plugin_microwakeword-0.0.2a1-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc6a914bb82d42aa79bbfbfdc441d806df9732fe7e91304492a1a7b72196cc80
|
|
BLAKE2b-256 checksum How to use checksums |
e92fa779ce73277255d801fd302140de6d5c97030fe04fefc31ed76a91561ef7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for ovos-ww-plugin-microwakeword 0.0.2a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.