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.