#wakeword setup

1 messages ยท Page 1 of 1 (latest)

stuck glade
#

I was hoping someone could help me I have followed all the steps to get voice assistant working and have run the mic test with successful recordings in home assistant but cannot get wake word to work I have tried multiple boards

#

hi, is this an esp based voice assistant ?

sinful beacon
#

yes I have tried with both esp32 devkit1 and esp32 s3 genuine espressif ESP32-S3-DevKitC-1-N32R8V

stuck glade
#

okeydokey , can you upload you paste in your config for me to have a look

#

sorry that should say upload your config to pastie or other code sharing site

sinful beacon
#

sorry not familiar with pastie how do I use?

stuck glade
#

ok not to worry. If you can paste your config in here, but you will have to do it in sections as you can't post more than 15 lines. If you could use the format i will paste to beow, then your code will show correctly in discord

hidden rampartBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

sinful beacon
#

I have found pastie and uploaded in yaml do i save then add a link?

#
esphome:
  name: d1miniva
  friendly_name: d1miniva

esp32:
  board: esp32dev
  framework:
    type: esp-idf

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "HAfMbskx5Lo0ywMEzjk44QbyluZnhDXOtiAwSSmZkg8="
stuck glade
#

yes please

sinful beacon
stuck glade
#

thanks just looking through... where did you get the config from ?

sinful beacon
stuck glade
#

i thought it looked familiar:) what do you have set as your wakeword service in assist settings ?

sinful beacon
#

can i upload screenshots

stuck glade
#

unfortunatley not, i will upload mine as reference

sinful beacon
#

ok openwakeword

#

and OK nabu

stuck glade
#

ok that should be fine. if you check in HA Core logs, do you see anything that may be related?
settings>>system>>logs

sinful beacon
stuck glade
#

ok that looks like it may be the cause , if you go into add-ons and openwakeword, can you see if there is anything in the logs there

sinful beacon
#

sorry had debug on

stuck glade
#

thank you ... and another set of logs ... can you click on the logs in ESPHome dashboard for the device. and try saying the wakeword a few times, then posting the logs from there too ๐Ÿ™‚

#

the esp logs will update in realtime as you watch them

sinful beacon
#

and i used the wakeword 5 times

stuck glade
#

ok , in your openwakeword add-on what do you have set in the 'configuration' settings for threshold and trigger level

sinful beacon
#

0.5 and 1

stuck glade
#

ok and that is all good too... but when you do the mic test everything works ok

sinful beacon
#

yes i recorded and saved the tests results to my computer and they were good

stuck glade
#

which board are you using at the moment ?

sinful beacon
#

esp32 devkit1 30 pin

stuck glade
#

ok the config should work with that , if using the s3 you have to set the channel to left.

#

have you tried with the basic config

esphome:
  name: d1miniva

esp32:
  board: esp32dev
  framework:
    type: esp-idf
    
logger:

api:
  on_client_connected:
        then:
          - delay: 10s
          - voice_assistant.start_continuous:
          - lambda: id(va).set_use_wake_word(true);
      
ota:

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

# This yaml was tested with the INMP441 I2s Microphone
# The L/R pin of the INMP441 is connected to ground
# According to the datasheets, connecting L/R to ground denotes that the microphone should output to the left channel,
# however in order for the microphone to function on a WROOM32 board Variant the configuration needs to be set to RIGHT
# THIS MAY DIFFER SO ALWAYS TRY THE LEFT CHANNEL IF YOUR ARE TROUBLESHOOTING

i2s_audio:
  i2s_lrclk_pin: GPIO25  #INMP4441 PIN == WS
  i2s_bclk_pin: GPIO32  #INMP$$! PIN == SCLK

microphone:
  - platform: i2s_audio
    id: va_mic
    adc_type: external
    i2s_din_pin: GPIO33  #INMP441 PIN == SD
    channel: right
    pdm: false

voice_assistant:
  id: va
  microphone: va_mic
  noise_suppression_level: 1
  volume_multiplier: 12.0
#

and i would change the volume_multiplier to 4 to start with

sinful beacon
#

updating now

stuck glade
#

๐Ÿคž

#

if you watch the logs after flashing, if it shows any errors regarding wakeword not detected ... then unplug the device and plug back in.. sometimes you need to do this more than once but once it's up and running it remains stable

sinful beacon
stuck glade
#

how do you have HA installed ?

sinful beacon
#

home assistant core 2024.2.5, supervisor 2024.02.1, operating system 12.0, frontend 20240207.1 installed on odroid

#

odroid N2+ 4GByte RAM

stuck glade
#

and installed haos on baremetal... not running in a docker container or anything ?

sinful beacon
#

yep

stuck glade
#

and your network, is that just straightforward? any VLANs or anything ?

sinful beacon
#

pre installed on EMMC module

#

straight forward stock

stuck glade
#

ok , just going to quickly do some edits to the config to try as a test

sinful beacon
#

also my automation's with my watering system works fine no communication probs

#

also thanks for the help it has been driving me crazy

stuck glade
#

it's a strange one.
if you can comment out or remove this line

          - lambda: id(va).set_use_wake_word(true);

from the api: section and save and install, then see what the esphome logs show

#

no problem at all , i enjoy what i do ๐Ÿ™‚ However I am expecting visitors soon, so I will have to leave. but can catch up again later

#

but i'm ok for a little longer ๐Ÿ™‚

sinful beacon
#

no problem running new upload now

stuck glade
#

ok once that is running you should be able to issue a comand without the wakeword, this is just to test if any audio is going through, so you can jsust say 'turn off xx' substitute xx with the name of any entity you have exposed to HA assist

sinful beacon
#

it did recognise

stuck glade
#

ok so it something with the wakeword service in HA, can you uninstall openwakeword and re-install it from the add-ons

sinful beacon
#

tried that yesterday

stuck glade
#

you can add that line back in now, we can safely say that the board and the ESP side is doing what it should

#

have you tried using one of the other wakewords?

sinful beacon
#

done and I tried jarvis but will try again with these changes

stuck glade
#

just need to add the

          - lambda: id(va).set_use_wake_word(true);
#

line back in

sinful beacon
#

just finished the upload now

stuck glade
#

ok

sinful beacon
#

it responded assist in progress on

stuck glade
#

oh well thats a good sign

#

do you have any entities esposed to assist

sinful beacon
stuck glade
#

that all looks like it is doing what it should be doing

sinful beacon
#

i do have an automation for my garden drippers plus others that are not automations

stuck glade
#

if you look in settings>> voice assistants>> then expose... it will list everything that you can expose for voice control. you can enable or disable to use assist form that screen and also give devices an alias, so you can set a short word that will be the word that is recognised.

sinful beacon
#

yes it worked it is having trouble understanding me but it did start my automation

stuck glade
#

oh good, it may take a little practice saying things in the way it will recognise. and you can spell the aliases phonetically to improve ... so spell it how it sounds when you say it.

sinful beacon
#

now I just need to wire up my speaker and change the config

stuck glade
#

yes, and just keep that config copied as a go to , should you have issues you can always revert back to onfirm everything is ok

sinful beacon
#

that is awesome now I can move forward thank you so much I will let you go now and I will play with the next stage

stuck glade
#

you are most welcome, and if you need any further help, drop a message back in this thread and I will see it... good luck with the rest ๐Ÿ‘