How to play MP3 files without a codec chip on the ESP32

We're playing MP3 files with no additional hardware! As always, big thanks to PCBWay for sponsoring this video - check them out at

We're messing around with more audio in this video. This time we're looking at decoding and playing back MP3 files on the ESP32 - all done in software, no fancy codec chips required.

0:00 Why MP3?
2:55 Decoding MP3 Data
3:40 Headphone output using the built-in DAC
5:58 I2S Output to the MAX98537 Amplifier
8:06 Bonus content - volume control!

Here's a link to the record-breaking shortest published song:

Here's my ESP32 audio playlist - there's a lot of gems in there for you to watch:

And here's the code:

You can get a headphone jack breakout board here (Amazon affiliate link):
Be the first to comment