Home Assistant Voice PE - Custom Wake Words Please!

If anyone wants to have “Alexa” as a custom wake word on VPE, this might be of value for you:

  name: home-assistant-voice-somedigits
  friendly_name: my-vpe
  micro_wake_word_model: alexa
packages:
  Nabu Casa.Home Assistant Voice PE: github://esphome/home-assistant-voice-pe/home-assistant-voice.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: your-key-goes-here

micro_wake_word:
  id: mww
  models:
    # CUSTOM
    - model: https://github.com/kahrendt/microWakeWord/releases/download/v2.1_models/alexa.json
      id: alexa
      probability_cutoff: 0.98
      sliding_window_size: 7
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

If you manage to train your own model (which I have attempted, I even got some files out of the process but it never worked when included in the build), you’d have your preferences json served somewhere and inserted instead of the github link in the config above. I stopped tinkering with the wake word as Alexa was enough for WAF here. Please note that I have modified the probability_cutoff and sliding_window_size to tackle false positives. These values will most probably be different for you and if you want to go with the defaults (which also have worked for some months for me), just remove these two lines. The build will then use the values in the linked json file. Have fun!

10 Likes