There's some code in the comments I just forked into our Github: https://github.com/DevHeadsCommunit
There's some code in the comments I just forked into our Github: https://github.com/DevHeadsCommunity/ESP32_I2S_WiFi_Radio
GitHub
ESP32 audio player with volume control. Uses I2S and WiFi to stream radio content from internet URLs. - DevHeadsCommunity/ESP32_I2S_WiFi_Radio

