schreibfaul1 / ESP32-audioI2S

Play mp3 files from SD via I2S
GNU General Public License v3.0
996 stars 266 forks source link

many glitches when listening some web radios #759

Open philippedc opened 1 month ago

philippedc commented 1 month ago

Hi, for some radio stations, and in particular French radio stations, for instance: http://icecast.radiofrance.fr/franceinter-lofi.mp3 or http://icecast.radiofrance.fr/franceinter-midfi.mp3 http://icecast.radiofrance.fr/franceculture-lofi.mp3 or http://icecast.radiofrance.fr/franceculture-midfi.mp3 https://icecast.radiofrance.fr/fip-lofi.mp3 or https://icecast.radiofrance.fr/fip-midfi.mp3 you should notice repetitive glitches after few seconds. These glitches are due by \r\nX\r\n sequences, as the streaming is chunked. Few years ago I've built a web radio with an ESP8266 + VS1053 and I solved this problem by using HTTP/1.0 instead of HTTP/1.1 as Chunked Transfer Coding is only supported in HTTP1.1 cf https://github.com/baldram/ESP_VS1053_Library/issues/52 I have performed the same with your library, however whatever I replace HTTP/1.1 by HTTP/1.0 or not, I get the same very noisy result. Have you got a idea how to suppress the chunks (https://en.wikipedia.org/wiki/Chunked_transfer_encoding)

github-actions[bot] commented 3 days ago

This issue is stale because it has been open for 30 days with no activity.