Skip to content

Wake word: listen through medialink.wakeword and tflite, not the retired wakeword module - #41

Merged
bdbarnett merged 1 commit into
mainfrom
laneA-install-apps
Nov 8, 2026
Merged

bdbarnett merged 1 commit into
mainfrom
laneA-install-apps

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

Fixes #35.

The app imported wakeword, a firmware module that was replaced by audiofeatures and tflite, so it showed missing: wakeword or usb host on every board. medialink.wakeword.MicroWakeWord is the replacement: it runs the same ESPHome microWakeWord models and the same detector (window mean over the cutoff, warm-up, fall-back before the next), on the firmware's tflite and audiofeatures. The app now loads the model through it from the same three places (its data folder, /models, the SD card's /models) and feeds it the 16 kHz mono audio it already prepares. The missing-module message names what the app needs: firmware with tflite and audiofeatures, the medialink package, and a USB host with usb-host-audio.

The score bar reads MicroWakeWord.probability, which comes from PyDevices/pydevices#454, so install a medialink that has it (and mip install medialink needs the index fix in PyDevices/.github#106 until then).

What I ran: byte-compiled the app and drove its model-loading function against a stand-in MicroWakeWord, which got the manifest path from the data folder. I did not run the app on a board, with a USB microphone or with LVGL, and I did not check that tflite.Model has read the file before the SD card is unmounted; that's the same order the old code relied on.

…red wakeword module

The app imported wakeword, a firmware module that no longer exists, and
stopped at 'missing: wakeword or usb host' on every board. It now runs
medialink.wakeword.MicroWakeWord, which follows the same ESPHome detector over
the firmware's tflite and audiofeatures, and its missing-module message
names what it needs.

Ran: the model-loading path with a stand-in MicroWakeWord. Not run: a board
with a USB microphone.
@bdbarnett
bdbarnett merged commit 69b1a55 into main Nov 8, 2026
6 checks passed
@bdbarnett
bdbarnett deleted the laneA-install-apps branch November 8, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Wake word app can't start: it imports wakeword, which isn't installable

1 participant