This release is a pre-release and may not be stable for production use.
ovos-ww-plugin-wakeforge
An OpenVoiceOS wake-word plugin that runs models made with
wakeforge. It ships ready models for
"hey mycroft", "alexa", "wake up", "computer" and "ok nabu", together with the feature extractor they run on, so it works
offline with nothing else to download. The runtime needs only onnxruntime and numpy.
This plugin only runs models. To train a model for your own wake word, use wakeforge, a wake-word research framework.
Install
pip install --pre ovos-ww-plugin-wakeforge
Try it on your laptop
You don't need OpenVoiceOS to try the models. The demo listens to your microphone and runs the ready model beside openWakeWord, microWakeWord and Precise, so you can compare them with your own voice:
pip install --pre "ovos-ww-plugin-wakeforge[demo]"
ovos-wakeforge-demo --wakeword hey_mycroft
Say the wake word. Each bar shows one engine's wake-word probability, and | marks where that engine
triggers. See Compare against other engines for the options.
Use a ready model
Put this in mycroft.conf:
{
"listener": {
"wake_word": "hey_mycroft"
},
"hotwords": {
"hey_mycroft": {
"module": "ovos-ww-plugin-wakeforge",
"model": "hey_mycroft",
"listen": true
}
}
}
For the other ready models, set model to alexa, computer, ok_nabu, wake_up or
hey_mycroft_synthetic, and name
the hotword to match.
"hey mycroft" ships in two versions for comparison. hey_mycroft was trained on human
recordings. hey_mycroft_synthetic was trained on synthetic speech only, the same way as
alexa, computer, ok_nabu and wake_up, so it shows what a model for a word nobody has recorded can reach. The demo
below runs both side by side.
Each ready model is a small classifier on features from
WakeHuBERT tiny, a 0.64M-parameter
speech feature extractor distilled from HuBERT-base. The score is a calibrated probability
that the last 1.5 s holds the wake word. Each model fires at its own default trigger (0.965 for hey_mycroft,
0.99 for hey_mycroft_synthetic, 0.99 for alexa and computer, 0.995 for ok_nabu,
0.990 for wake_up), and after a detection it stays quiet for 2 s. Set
"threshold" to change the trade-off: a lower value fires more readily and falsely more often. With a
microphone whose gain is far too high or too low, "agc": true levels the audio before scoring.
Model licences are listed in ovos_ww_plugin_wakeforge/models/NOTICE.
Use your own model
Point model at the classifier ONNX that wakeforge exported, and featurizer at its feature
extractor. Both can be local paths or URLs. A model trained on a pretrained featurizer names
that featurizer in its own metadata, so featurizer can be left out. A model whose metadata
carries a calibrated default_threshold uses it, together with the ready-model smoothing.
{
"listener": {
"wake_word": "hey_jarvis"
},
"hotwords": {
"hey_jarvis": {
"module": "ovos-ww-plugin-wakeforge",
"listen": true,
"featurizer": "~/hey_jarvis/featurizer.onnx",
"model": "~/hey_jarvis/model.onnx"
}
}
}
Config keys
| key | default | description |
|---|---|---|
featurizer |
— (required) | feature-extractor ONNX (path or URL), or a pretrained featurizer name such as wakehubert; optional when the model names its featurizer |
featurizer_revision |
bundled or latest | Hugging Face revision (branch, tag or commit) of a pretrained featurizer; a revision other than the bundled one is downloaded |
model |
— (required) | classifier-head ONNX (path or URL), or a ready model: alexa, computer, hey_mycroft, hey_mycroft_synthetic, ok_nabu, wake_up |
vad |
none | optional VAD ONNX for an extra channel |
threshold |
0.5 |
detection threshold; a ready model or any head whose ONNX metadata carries default_threshold uses that instead (0.99 alexa, 0.99 computer, 0.965 hey_mycroft, 0.99 hey_mycroft_synthetic, 0.995 ok_nabu, 0.990 wake_up) |
smoothing |
ema |
ema | mean | max (a calibrated head: max) |
patience |
3 |
consecutive above-threshold frames to fire (a calibrated head: 1) |
debounce_sec |
1.0 |
minimum seconds between detections (a calibrated head: 2.0) |
window_size |
5 |
smoother rolling window (mean/max) (a calibrated head: 1) |
ema_alpha |
0.3 |
EMA responsiveness |
block_ms |
80 |
audio is scored in blocks of this length whatever chunk size the listener sends, so patience counts time and the featurizer always gets a full block |
onnx_threads |
1 |
intra-op threads per ONNX session; sessions never spin-wait |
streaming |
false |
use the stateful streaming (GRU) head; with a pretrained featurizer the head type is read from the model |
gru_window |
100 |
frames the head averages over; with a pretrained featurizer it is read from a streaming head, or from a batch head's window_frames metadata, else 1.5 s of frames |
isolated_windows |
true |
pretrained featurizer with a batch head: featurize each window on its own, as training clips were; false featurizes with the past audio each frame depends on |
agc |
false |
with isolated windows, level each window (peak to 0.5, gain 0.25–4x) before scoring |
hidden_dim |
128 |
GRU hidden size of the streaming head |
URL models are cached under ${XDG_DATA_HOME}/wakeforge/.
Pretrained featurizers other than the bundled wakehubert and wakehubert-int8 are downloaded from the Hugging Face Hub on first use. A featurizer that depends on future audio, or on unbounded history, cannot run on a live stream and is refused at load time.
Compare against other engines
ovos-wakeforge-demo listens to the microphone and runs the ready model next to the other
wake-word engines that have a model for the word, each fed the same 80 ms chunks:
pip install --pre "ovos-ww-plugin-wakeforge[demo]"
ovos-wakeforge-demo --wakeword hey_mycroft
| engine | what runs |
|---|---|
wakehubert |
this plugin with its ready model for the word |
wakehubert-synthetic |
this plugin with its synthetic-only model for the word (hey_mycroft only) |
openwakeword |
the openwakeword library with its pretrained model for the word |
microwakeword |
the pymicro-wakeword library with its v2 model for the word |
precise-onnx |
the OVOS precise-onnx plugin with its hey mycroft model (it has no model for the other words) |
An engine with no model for the chosen word is listed in the red "not loaded" row. microWakeWord
has an okay_nabu model, which runs for --wakeword ok_nabu. No other engine has a computer or
wake_up model, so for those words wakehubert is the only bar on the panel.
Each engine has a row with a bar showing its wake-word probability and a | where it
triggers. When a bar crosses its marker the row turns green with "WAKE WORD!", the
detection is counted and logged under "recent detections", and that engine's detections
are ignored for 2 s. A meter shows the microphone level and warns when the input clips.
An engine that fails to load is listed in a red "not loaded" row with the reason, and an
engine that fails while running shows the error in its own row.
Options: --wakeword alexa|computer|hey_mycroft|ok_nabu|wake_up, --threshold (WakeHuBERT trigger probability),
--oww-threshold (default 0.5), --mww-cutoff (default: the model's shipped cutoff),
--precise-sensitivity (default 0.5), --only wakehubert,openwakeword,..., --device
(see python -m sounddevice), --agc (level each WakeHuBERT window) and --file clip.wav,
which scores a 16 kHz recording instead of the microphone and prints each engine's
detection times.
Related projects
- TigreGotico/wakeforge is the wake-word research framework that trains the models this plugin runs.
- OpenVoiceOS/ovos-plugin-manager loads this plugin alongside other speech-to-text, text-to-speech and wake-word plugins.
- OpenVoiceOS/ovos-ww-plugin-precise-onnx is a sibling wake-word plugin that runs Precise models through ONNX.
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-wakeforge 0.6.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovos_ww_plugin_wakeforge-0.6.0a1.tar.gz | 34.8 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ovos_ww_plugin_wakeforge-0.6.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.5 MB
Release files / ovos_ww_plugin_wakeforge-0.6.0a1.tar.gz
| Download URL | ovos_ww_plugin_wakeforge-0.6.0a1.tar.gz |
|---|---|
| Size | 34.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a81441ef1b647209a260d76a5fd87f676410a5d51f04feb016242de2e5e37741
|
|
BLAKE2b-256 checksum How to use checksums |
72e0eee768cf8d00b887bb862dc1e10d5cf7455cc9c215c99037ac21e05d7cbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / ovos_ww_plugin_wakeforge-0.6.0a1-py3-none-any.whl
| Download URL | ovos_ww_plugin_wakeforge-0.6.0a1-py3-none-any.whl |
|---|---|
| Size | 34.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc2356a013031ec8d19232e618f968e6b286d5be502f8284287e00c4b26b700f
|
|
BLAKE2b-256 checksum How to use checksums |
aa17a0927e4221035ffb388a7535eef041065b7e1a63ab3eb7781e240467ef80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|