M5 Atom echo voice assistant and media player together

Hi,

I own an M5 Stack Atom Echo. Using ESPHome with the ESP-IDF framework, I can program it as a Home Assistant device with Wake Word support. On the other hand, if I use the Arduino framework, I can turn it into a network media player and use it through Music Assistant.

Is there any way to combine both functionalities so that the device can serve both purposes? I managed to do this on a Raspberry Pi with Wyoming Satellite + MPD, but I would like to achieve the same setup on the M5 Atom Echo.

Thanks!

Try this, No idea if it works just know I had it bookmarked.

Thank you! After a few adjustments, I got it working. :blush:

ive been trying this for a couple hours what tweaks did you do?

I have not managed to make this code work on the latest version of esphome. It will still compile fine on 24-12. I have not had time to play and don’t use an echo often enough. I do use similar code on my DIY voice stuff but also haven’t had time to play and sort out the changes. Best bet is to compile with 24-12.

To recompile with 24/12 means creating a new venv and next:

pip install esphome==2024.12.0
esphome dashboard configuration

and install in the new localhost:6052, or something more is required?

But surely its a bit irrelevant 4 months on, things have changed a lot since then.