MicroWakeWord custom V2 wake words: taking requests (12/2 only)

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.

I’ll post completed models w/ a v2 json at GitHub - JohnnyPrimus/Custom_V2_MicroWakeWords

My preference is ‘OK Friday’

Hey Willy.
( as from ALF the tv serie)

Hi! I would love to get “hey_simon” or just “simon” or both… is it too late?

It’s awesome, could please make a tutorial how make my own? :smiley:
Or if it’s easier could you make me Hey Viki :slight_smile:

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?

How do i configure the Computer one on my VPE?

“Hey Alfred” for my dreams of having a Batcomputer in my home :slight_smile:

I dunno as said what I think in the above as microWakeWord/notebooks/basic_training_notebook.ipynb at 1c2d8666497543361f9fde059afa5f21b409cf0e · kahrendt/microWakeWord · GitHub does some odd things starting with Piper creating 1000 samples of 2 voices with the rest being a small variation. It then goes off the wall of applying just RiRs recorded @ 1.5m of environments such as forests and large halls.
No-one seems to be publishing any output of PE of the raw PCM so no-one can analyse and aim a dataset at.

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.

I really need GLaDOS as Wakeword :smiley: in open wakeword it does not work great.

Pls, computer!

Computer is there if you follow the link in the original post.

“Cocaine Poodle”

How do i configure it in my YAML?

substitutions:
  name: office-voice-assistant
  friendly_name: Office voice assistant
packages:
  Nabu Casa.Home Assistant Voice PE: github://esphome/home-assistant-voice-pe/home-assistant-voice.yaml

# [...]

micro_wake_word:
  id: mww
  models:
    - model: github://JohnnyPrimus/Custom_V2_MicroWakeWords/models/computer/computer.json
      id: computer

→

Failed config

micro_wake_word: [source /var/lib/esphome/.esphome/packages/dc43710d/home-assistant-voice.yaml:1535]
  
  [micro_wake_word] is an invalid option for [<root>].
  id: mww
  models: 
    - model: 
        url: |-
          https://github.com/kahrendt/microWakeWord/releases/download/okay_nabu_20241226.3/okay_nabu.json
        type: http
      id: okay_nabu
      internal: False
    - model: 
        url: |-
          https://github.com/esphome/micro-wake-word-models/raw/main/models/v2/hey_jarvis.json
        type: http

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.

Did you ever figure out how to get your custom MWW working on your VPE?