ESP32-MiniWebRadio icon indicating copy to clipboard operation
ESP32-MiniWebRadio copied to clipboard

Problem with slow playback and Polish characters.

Open hevet opened this issue 1 year ago • 9 comments

In Version https://github.com/schreibfaul1/ESP32-audioI2S/commit/e2e4df30965e05c0ec18a68a1c7e9d2fc2728bf6 some stations are slower again.

http://ic1.smcdn.pl/2030-1.mp3 http://ic1.smcdn.pl/6120-1.mp3

From this https://github.com/schreibfaul1/ESP32-audioI2S/commit/8d50fd3b897e050a0539e17dae9350f41f812e28 stations do not display Polish characters correctly.

hevet avatar May 04 '24 07:05 hevet

Yesterday I changed the conversion from latin-1 (iso8859) to UTF-8, which affects these letters:

ÁÂÃÄÅÆÇÈßÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãääæçèéêëìíîïðñòóôõö÷øùúûüýþÿ

Are there any other letters? How can I reproduce this?

schreibfaul1 avatar May 04 '24 07:05 schreibfaul1

Sample station https://ic2.smcdn.pl/3990-1.mp3 Instead Ó is Å, e.t.c.

hevet avatar May 04 '24 08:05 hevet

Polish characters are Ą Ć Ę Ł Ń Ś Ó Ź Ż ą ć ę ł ń ś ó ź ż

hevet avatar May 04 '24 08:05 hevet

Thank you for your support. For metadata in Europe, the stream titles are sometimes still transmitted in Latin-1. UTF-8 is predominantly used. It is difficult to distinguish between the two encodings. I search for invalid UTF-8 characters in the stream. Hope that's okay now. At the sample station I now get:

image

schreibfaul1 avatar May 04 '24 14:05 schreibfaul1

Ok, thanks, I'll check later when I get home. What about the second problem, e.g. this station "Vox FM" plays at a slower tempo.

hevet avatar May 04 '24 15:05 hevet

That's strange, VOX FM plays at 44.1KHz and in the VLC player at 48KHz, the same URL https://ic2.smcdn.pl/3990-1.mp3

schreibfaul1 avatar May 04 '24 17:05 schreibfaul1

@schreibfaul1 There is the same problem with Eska, Eska Rock, you already improved something because there was the same problem. https://github.com/schreibfaul1/ESP32-MiniWebRadio/issues/383

hevet avatar May 04 '24 18:05 hevet

Thanks, that was a self-installed error. I have suppressed the error messages of the mp3 decoder if the mp3 frames are not sufficient for decoding. However, the sample rate 0 is output until the first successful decoding. This is ignored and the standard 44100Hz is set. Of course, the correct sample rate can only be determined when valid data is available for I2S.

schreibfaul1 avatar May 04 '24 18:05 schreibfaul1

@schreibfaul1 thanks, is ok :)

hevet avatar May 04 '24 19:05 hevet

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

github-actions[bot] avatar Jun 04 '24 02:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 18 '24 02:06 github-actions[bot]