Basic mediaplayer ESP32-A1S V2.2 A520 no sound

Hi, I did a fair bit of playing around as I have the same problem on my new A1S Audio Kit. I could not get audio out of the HEADPHONES though - is that also your problem?

It turns out that there are a number of different A1S devices, some with PCM5102 based codec chips, and some with ES8388 codecs. Mine is the ES8388 type.

I found this code which works for me but it includes patches of pre-released code, so it’s a bit of a hack, I suppose.
After I compile it I just need to go into HA and enable the “AUX OUT” switch (to enable the headphones lines), and I get (choppy) audio:

You’ll see the switch: aux_output lambda in the code - that’s selecting the headphones output through the i2s bus, that’s not present in the example code which I think that you’ve based your code off (ES8388 - ESPHome - Smart Home Made Simple).
Plus, just check your i2s pins numbering as the number differ for the PCM5102 and ES8388 devices as I mentioned.

i2s_audio:
  - id: i2s_audio_bus
    i2s_lrclk_pin: GPIO25
    i2s_bclk_pin: GPIO27

It’s worth noting that RaceNJason published later code on github, but this does not work on my board.

I’ll dig into why later.

Keep an eye on this thread too as it mentions that Sendspin should be merged and released as A-rev next month: