#wakeword setup
1 messages ยท Page 1 of 1 (latest)
yes I have tried with both esp32 devkit1 and esp32 s3 genuine espressif ESP32-S3-DevKitC-1-N32R8V
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
sorry not familiar with pastie how do I use?
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
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.
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="
yes please
thanks just looking through... where did you get the config from ?
combination of your mic test and https://smarthomecircle.com/setup-esp32-with-wake-word-in-home-assistant
i thought it looked familiar:) what do you have set as your wakeword service in assist settings ?
can i upload screenshots
unfortunatley not, i will upload mine as reference
ok that should be fine. if you check in HA Core logs, do you see anything that may be related?
settings>>system>>logs
I did see this http://pastie.org/p/1vDVwBUNWAXWg7O8l6XrFQ
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
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
ok , in your openwakeword add-on what do you have set in the 'configuration' settings for threshold and trigger level
0.5 and 1
ok and that is all good too... but when you do the mic test everything works ok
yes i recorded and saved the tests results to my computer and they were good
which board are you using at the moment ?
esp32 devkit1 30 pin
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
updating now
๐ค
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
this is what it shows now http://pastie.org/p/6o0NzHZ621fI7JqrSsqoPr
how do you have HA installed ?
home assistant core 2024.2.5, supervisor 2024.02.1, operating system 12.0, frontend 20240207.1 installed on odroid
odroid N2+ 4GByte RAM
and installed haos on baremetal... not running in a docker container or anything ?
yep
and your network, is that just straightforward? any VLANs or anything ?
ok , just going to quickly do some edits to the config to try as a test
also my automation's with my watering system works fine no communication probs
also thanks for the help it has been driving me crazy
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 ๐
no problem running new upload now
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
ok so it something with the wakeword service in HA, can you uninstall openwakeword and re-install it from the add-ons
tried that yesterday
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?
done and I tried jarvis but will try again with these changes
just finished the upload now
ok
it responded assist in progress on
http://pastie.org/p/7nQyJYNhbABLKzINN3SpMz wakeword detected
that all looks like it is doing what it should be doing
i do have an automation for my garden drippers plus others that are not automations
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.
yes it worked it is having trouble understanding me but it did start my automation
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.
now I just need to wire up my speaker and change the config
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
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
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 ๐