Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-ww-plugin-wakeforge

An OVOS wake-word plugin for custom models trained with wakeforge.

Wakeforge trains a wake-word detector from a single phrase and exports a two-file ONNX pipeline: a feature extractor and a classifier head. This plugin loads that pipeline and runs it as an always-on hotword engine. The runtime uses onnxruntime and numpy only. It does not need PyTorch.

Install

pip install ovos-ww-plugin-wakeforge

Train a model

pip install wakeforge
wakeforge-quickstart "hey jarvis" ./hey_jarvis
# → ./hey_jarvis/best_f1_featurizer.onnx  +  ./hey_jarvis/best_f1.onnx

Configure

In mycroft.conf, point a hotword at the two ONNX files. Use local paths or URLs.

{
  "listener": {
    "wake_word": "hey_jarvis"
  },
  "hotwords": {
    "hey_jarvis": {
      "module": "ovos-ww-plugin-wakeforge",
      "listen": true,
      "featurizer": "~/hey_jarvis/best_f1_featurizer.onnx",
      "model": "~/hey_jarvis/best_f1.onnx",
      "threshold": 0.5
    }
  }
}

Config keys

key default description
featurizer — (required) feature-extractor ONNX (path or URL)
model — (required) classifier-head ONNX (path or URL)
vad none optional VAD ONNX for an extra channel
threshold 0.5 detection threshold
smoothing ema ema | mean | max
patience 3 consecutive above-threshold frames to fire
debounce_sec 1.0 minimum seconds between triggers
window_size 5 smoother rolling window (mean/max)
ema_alpha 0.3 EMA responsiveness
streaming false use the stateful streaming (GRU) head
gru_window 100 window the streaming head was exported with
hidden_dim 128 GRU hidden size of the streaming head

URL models are cached under ${XDG_DATA_HOME}/wakeforge/.

Related projects

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_ww_plugin_wakeforge-0.0.1a2.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_ww_plugin_wakeforge-0.0.1a2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos_ww_plugin_wakeforge-0.0.1a2.tar.gz.

File metadata

File hashes

Hashes for ovos_ww_plugin_wakeforge-0.0.1a2.tar.gz
Algorithm Hash digest
SHA256 bfc95f78dbb78f89807b68c40e9b672688284cab112c89a0c5cf5856a7e44505
MD5 5982de4e49372a96f4ff269de5e7f713
BLAKE2b-256 e4d6154339989ff7b713653a2dee3fd0f53dc3c10cd3c9f61d60b793a3bc4c9f

See more details on using hashes here.

File details

Details for the file ovos_ww_plugin_wakeforge-0.0.1a2-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_ww_plugin_wakeforge-0.0.1a2-py3-none-any.whl
Algorithm Hash digest
SHA256 2989cfff0855f5115c49943f153ce4a8ee32a3d9f431b63037082bf70194fee6
MD5 8dc3265d3b66b152cd1780b8da76477d
BLAKE2b-256 927a53935d5150b043b09a6d5c3b6a978fd16c106c1e51e1bd9c474f8558e1d8

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1a2 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page