After an afternoon of tinkering I’ve got a colab notebook building V2 .tflites. It takes some time (even using A100) to download and generate feature data, but once that’s done it doesn’t take too long to produce a tflite for an arbitrary wake work.
So while I have it open, and with the asterisk that this is using Kevin Ahrendt microWakeWork v2 code that is still under development, I’m happy to create a model for whatever you like (within ToU’s, etc). Can do this through this evening PST, 12/2.
Ahh, i missed my chance,
I really want Hey Sonya (i think the pronunciation it’s quite international and i prefer the assistant voice as a female).
Any tutorial how to do it?
kahrendt has done a great job of getting the frontend for tf4micro and so much else into the esp32-s3 workspace but who or what provided the training example for a classification model seems to be making some very basic 101 errors and missconceptions in everyway of what is required. Datasets: Data characteristics | Machine Learning | Google for Developers the rough guide to dataset size in respect to model parameters Google recomends is enlightening to what is actually being done.
I created a dataset just to get my memory working on a lot of trial and error I did 3 years ago with google-research/kws_streaming at master · google-research/google-research · GitHub and the resultant tflite of the model I knew is a crnn which I have done to test. GitHub - StuartIanNaylor/tf-kws: tflite keyword the latest last 3 repos have just been scratch pad repo’s of doing a dataset my way. Classification models are just dumb classification models and if there is a little cross entropy between labels anything can fall into a no-mans land where it could be detected as a label.
I create a falsekw to act as a honeypot to train against and reduce false positives by adding a label with more cross entropy. HeyJarvis-Dataset.tar.xz - Google Drive
No forest recorded RiRs @ 1.5m but likely a model trained with that dataset will be far more accurate and also for accents not so overfitted to a very similar US English intonation of little variation.
Your dataset is the program for a classification model and that basic 101 of ML seems to be being over looked.
I sort of binge and procrastinate and on the later at the moment as reasonably happy with how kws.py works with the streaming CRNN model from kws_streaming just as a datum to what I knew from before.
The dataset is synthetic and really what we need are actual capture from device of use in a dataset packed with accurate meta-data like the gold standard datasets the aptly named big data have.
Capture and collection is still not even being done and its totally crazy, so we are stuck with synthetic created ones, but even then so much is missing, lacking in entropy and dataset size and likely labels…
As added a final bit on how to make microWakeWord very accurate but its sort of all datasets and the no-brainer is they should be what is the input to the model.
I think a real useful one would be hey_home. I created a .tflite version that can be used with open wake word but don’t know how to create a .json version to work with micro wake word so I can use on ESP32 devices.
Cortana would be awesome, I did a wake word for Home Assistant but a micro one would be awesome, I used the spelling cortahna I have already adjusted my PE so instead of the ding noise when it detects the wake word it says “Master Chief”, which works well.