Skip to main content
Pre-release

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 (1x1x40 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 10 ms frames whose average must exceed probability_cutoff before a detection fires. This mirrors the ESPHome sliding_window_average_size setting.
refractory_frames int 40 Frames to ignore after a detection (about 400 ms). 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 10 ms frame
                  →  quantize to int8 (scale 0.102, zero-point −128)
                  →  TFLite interpreter (1×1×40 → 1×1 uint8)
                  →  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.
  • v2 models use the same input convention. The plugin supports both transparently.
  • A model must accept [1, 1, 40] int8 input. Any model with a different input shape raises ValueError at load time.
  • 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.

Other OpenVoiceOS wake-word plugins:


Credits

Developed by TigreGótico for OpenVoiceOS.

NGI0 Commons Fund

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.1a4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ovos-ww-plugin-microwakeword 0.0.1a4
File Size Uploaded Provenance Actions
ovos_ww_plugin_microwakeword-0.0.1a4.tar.gz 18.4 kB Without provenance Details for ovos_ww_plugin_microwakeword-0.0.1a4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ovos-ww-plugin-microwakeword 0.0.1a4
File Interpreter ABI Platform Actions
ovos_ww_plugin_microwakeword-0.0.1a4-py3-none-any.whl Python 3 none any Details for ovos_ww_plugin_microwakeword-0.0.1a4-py3-none-any.whl

Total release size: 32.4 kB

Release files / ovos_ww_plugin_microwakeword-0.0.1a4.tar.gz

Download URL ovos_ww_plugin_microwakeword-0.0.1a4.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b1840fe601e4d1f368258601178b9c156dee3b82da1efe93eec6016cab28733c
BLAKE2b-256 checksum
How to use checksums
46136057005dac455305b544b1cd3d29c29e2fc56dfe1e08247c78edf430bdee
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.1a4-py3-none-any.whl

Download URL ovos_ww_plugin_microwakeword-0.0.1a4-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e80057d9ac221222c4285de85860d423b33acf84c3a2e7b9fb993fa36579083
BLAKE2b-256 checksum
How to use checksums
0b2a41ea6862fc8b615fce17f3531be3d2aaef9b6373656e292c7d491597d9e4
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.1a4

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page