![](https://feddit.nl/pictrs/image/1fc6ce2b-657a-42a4-b52a-5701df7e7eea.jpeg)
![](https://lemmy.world/pictrs/image/94b2b808-7c9c-4de0-a35b-966d14ae40fd.png)
Sorry, I misunderstood what you are trying to do here. I thought you were trying to use the Atom Echo itself as a media player. Disregard that arduino library comment, it isn’t relevant. I just watched the video since I couldn’t earlier.
Indeed what you are doing should work. Are you certain that the upload was successful? With GPIO21 set as the speaker output, the speaker data should absolutely not work. The fact that it does means that somewhere along the line, the GPIO22 is set as the speaker output.
I am making an esphome system for my old Yamaha AV receiver. RCA out via a cheap i2s chip, mems I2S mic in the enclosure that can hear well enough in the room, and an IR blaster output to change the AV receiver channel to the esp when voice is activated and change it back after.
Cool side effect is that it can also be used as an HA media player for streaming Spotify and local music to the speaker system.