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.