baldram / ESP_VS1053_Library

A library for VS1053 MP3 Codec Breakout adapted for Espressif ESP8266 and ESP32 boards.
https://platformio.org/lib/show/1744/ESP_VS1053_Library
GNU General Public License v3.0
114 stars 36 forks source link

Web radio chunked demo #48

Open wmarkow opened 4 years ago

wmarkow commented 4 years ago

A simple example how to handle the audio stream with chunked transfer, to avoid sound glitches. More discussion also in #47.

CelliesProjects commented 3 years ago

I wrote a wrapper for this issue. Check out https://github.com/CelliesProjects/ESP32_VS1053_Stream.

With the lib it is as easy as stream.connecttohost("http://icecast.omroep.nl/radio6-bb-mp3"); to open a stream (chunked, https or just plain http) and a loop() function that has to be called every few ms. See #65.

baldram commented 3 years ago

Thank you @CelliesProjects for providing a solution to the issue and your work. I had a look to https://github.com/CelliesProjects/ESP32_VS1053_Stream, next to https://github.com/CelliesProjects/eStreamPlayer32_VS1053 and I must say I'm very impressed.

Now I'm wondering how about those two MRs:

I haven't figured out if we have a clear answer: this works for all people reporting "glitches problem" in this and related issues. Probably it was still not enough for all cases, without firmware patch, etc.

Are those still valuable examples? That we can we merge both as a "simple example solution" (with small amount of code)? Then in both we would add a code comment pointing to ESP32_VS1053_Stream and eStreamPlayer32_VS1053 example, that if someone wants to do more, he/she might try the more comprehensive solution?

What do you think @CelliesProjects ? What is your opinion @wmarkow and @fabitom?