and it worked fine. Now I want to understand if the mic is active and receiving data. I thought of using the same switch to run the microphone.capture action and log the data:
try looking at one of the other voice device projects for inspiration.
The schematics of the devices are online so you have working software and a reference hardware. you can almost take it as is and modify it to your hardware. At a minimum you can use it to understand how it can be done
Unless your esp has psram you will be in for a poor experience, so make sure you are using an esp32 s3 n16r8 board. You may also get away with an n8r2 board.
The difference is the 8M of PSRAM, Dont ask me anything more technical. But that and the 16m flash will allow the space for the code to run.
From the esphome voice page
Warning
Audio and voice components consume a significant amount of resources (RAM, CPU) on the device.
Crashes are likely to occur if you include too many additional components in your device’s configuration. In particular, Bluetooth/BLE components are known to cause issues when used in combination with Voice Assistant and/or other audio components.
If you experience crashes, see the Troubleshooting guide for how to get a backtrace.
I have 4 setups using the code in the post I linked earlier. They work well and have done for some time.
I have been messing about with this since the very early days of voice.
A few tips. Solder all connections and place the end result somewhere with a good wifi signal. Poor wifi signals can cause the speech to cut short or crackle.
thanks! I ordered the one you linked. After the first order the price is more or less the same on Amazon, I’ll probably get those as well.
Would it be possible for you to post your YAML, just for reference? Thanks!