I’m using the INMP441 MEMS microphone - and NO speaker at this time (I’d just like to see the thing do SOMETHING).
I’ve tried I don’t know how many yaml files/pins you name it - I never see anything about it picking up a wake word.
Here’s my current non-working YAML. I have 100% confirmed the mic is working by flashing this with the Audioreactive fork of WLED and it reacts to music correctly.
I run HASS in a docker container, so I also have openwakeword, esphome, whisper and piper all in containers.
If you add this to configuration.yaml. And create the linked folder, you will be able to play back what your mic is recording, this can help understand why wake word is not responding. My experince was distorted sound. you will need to restart HA and do not leave this in the setting once you have tested or it will fill up you storage quickly.
Now to be sure - I run HASS in a Docker container, so I created a ‘Temp’ folder in the root of my mounted folder (where the configuration.yaml is loaded from) and I’ve yet to see anything show up in the temp folder.
so in my docker_files folder under homassistant (on the local ubuntu server) I mount that as /config in the container. So I created a temp folder in there and listed it as /config/temp in the configuration.yaml - so it ‘should’ work
…update…
ok as I was typing this all out - I got this in the folder. I downloaded it but it plays nothing at all.
Whenever using the espressif esp-idf platform, it is crucial to clean all build files before rebuilding your project. Try that before doing a clean build.
It’s ‘almost’ like it created the files itself - I could be wrong - but those seemed to be there on boot of the esphome esp32 bceause I cleared the files before plugging it in and on speaking to it - I get no more files.
That’s frustrating. I can tell you this, the inexpensive INMP441 microphones from Amazon are no match for the higher-priced Adafruit SPH0645LM microphones. Better pin layout, better quality control with Adafruit.
@FredTheFrog - yeah, you might be right on this one. I mean they have been working for WLED soundreactive esp devices, but maybe no bueno for the HASS voice? It’s a consideration for sure. Thanks for taking the time to respond to my thread!
As someone who is a former Rhasspy user, and having experienced many of these frustrations building HA Voice Assistants in the last few weeks, I’m VERY happy to share my experiences. Currently lamenting the lack of response to my posts, so I’m trying to remedy that where I can.
I had the unfortunate experience of receiving several bad ESP32-S3-N16R8 boards from one Amazon vendor (AITRIP) in my first purchase. Switched to DWEII vendor on Amazon using this ESP32-S3 board. Better quality in my experience, even though the boards looked 100% identical. Very likely from the same factory, just different batches.
The little round mics kinda worked okay, but were a PAIN during soldering and unit assembly. The two rows of three pins and requirement for the L/R pin to be grounded made firm, reliable fixture of the mic a serious issue. The Adafruit mics have six pins in a straight line down one edge of the board, making things a bit easier. They also default to LEFT placement, unless you tie the L/R pin to 3V3 power.
I have two major concerns with the HA voice assist devices right now:
reliability/repeatability of the ESPhome voice_assistant code. It often doesn’t respond every time. Whether that’s down to the wake word processing or code/loop timing, I just don’t know. It also sometimes gets stuck in ‘thinking’ mode when things get out of sync with the HA server.
output responses stuttering/choppy/incomplete - occasionally, they are almost perfect (but not quite) but most of the time, they are terrible.
@FredTheFrog - thanks, so to ask one more question have you been able to make a working voice assistant with that mic and those esp32 boards (I don’t mind fighting with yaml/configs, but I like to know if someone at least got the hardware running…)
I have 2 voice assist working very well using the SPH0645LM4H mic and MAX98357. On an esp32 wroom board. They have been working for some time without issue.
I am also playing with some esp32 s3 n16r8 boards using micro wake word. These are using imp441 mics and don’t seem to be as responsive as the other mics. But this is very much a work in progress right now.
See this for code samples, none of it is my work esphome:
@Arh - thanks for all that info very helpful! Would you mind to link the hardware you bought and are using? If not it’s ok, but thought I’d ask. I’m specifically very interested in which esp32 you’re using as it seems some variants work well when others do not (seemingly to me anyway…)