Repository navigation
Wake word: listen through medialink.wakeword and tflite, not the retired wakeword module - #41
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #35.
The app imported
wakeword, a firmware module that was replaced byaudiofeaturesandtflite, so it showedmissing: wakeword or usb hoston every board.medialink.wakeword.MicroWakeWordis 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'stfliteandaudiofeatures. 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 withtfliteandaudiofeatures, themedialinkpackage, and a USB host withusb-host-audio.The score bar reads
MicroWakeWord.probability, which comes from PyDevices/pydevices#454, so install amedialinkthat has it (andmip install medialinkneeds 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 thattflite.Modelhas read the file before the SD card is unmounted; that's the same order the old code relied on.