-->
Page 1 of 1

ESP, play MP3 from flash to DAC

PostPosted: Sat Dec 03, 2016 12:41 pm
by Lythy
Hi,

I nearly got to what I needed for a project by simply connecting a PCM5102 board and stripping out the web parts of this great project ->

viewtopic.php?f=11&t=11790,

but the WAV playback seems to have issues with buffering in the way I've modified it... so close! I don't need to stream, I only need a single MP3 on the flash.

Has anyone successfully played an MP3 that's loaded on the ESP flash, outputting to I2S, preferably with Arduino IDE?

Doing it all on the ESP would be amazing.

thanks
L

NodeMCU 12-E
+
PCM board = http://www.banggood.com/PCM5102-DAC-Dec ... 80430.html

Re: ESP, play MP3 from flash to DAC

PostPosted: Sun Dec 04, 2016 6:05 pm
by gdsports
Playing an MP3 file is harder than playing a WAV file. The MP3 file contains compressed audio that must be decompressed before it is converted to analog audio. A DAC does not decompress MP3 data so it will not work. A DAC does play uncompressed WAV PCM audio.

Fortunately, the VS1053 chip is available on breakout boards.

This project is similar to the WAV file player project but uses the VS1053 chip to play MP3 and other formats. The VS1053 board decompresses the MP3 data and sends the audio stream to its stereo output jack.

The VS1053 connects to the ESP8266 via SPI. I saw your message about I2S problems so switching to VS1053/SPI might avoid this issue.

Re: ESP, play MP3 from flash to DAC

PostPosted: Sun Dec 04, 2016 8:25 pm
by rudy
https://github.com/karawin/Ka-Radio
https://www.aliexpress.com/item/1PCS-VS ... 38635.html

I do have the board, just not enough time to try this yet. I consider it an easy way to get a mp3 player for the ESP. Libraries are already done. The board is cheap and done. A no-brainer for me.

Image