schreibfaul1 / ESP32-audioI2S

Play mp3 files from SD via I2S
GNU General Public License v3.0
1.09k stars 284 forks source link

In the latest git version, there is a strange stuttering when playing a stream. #851

Open genicsoft opened 1 week ago

genicsoft commented 1 week ago

In the latest git version, there is a strange stuttering when playing a stream. I did not experience this problem with version 0.12. I have reverted to 0.12

But some streaming media is fine.

genicsoft commented 1 week ago

info stream ready info syncword found at pos 0 info MPEG-1, Layer I info Channels: 1 info SampleRate: 24000 info BitsPerSample: 16 info BitRate: 48000

schreibfaul1 commented 1 week ago

It may be that there are files or streams that behave like this. Do you have a file or URL that I can use to test this?

genicsoft commented 1 week ago

i get i go to ready it these days

cziter15 commented 4 days ago

@schreibfaul1

It may be that there are files or streams that behave like this. Do you have a file or URL that I can use to test this?

I have same issue when using polish audio TTS (google). It sounds like a drunk guy.

SlavaZagaynov commented 16 hours ago

Вчера мучался с заиканием TTS (google). Если прошивать esp32 не на 240 мгц, а на 160 - то не заикается.

cziter15 commented 3 hours ago

Вчера мучался с заиканием TTS (google). Если прошивать esp32 не на 240 мгц, а на 160 - то не заикается.

@SlavaZagaynov said: Yesterday I was struggling with stuttering TTS (google). If you flash esp32 not at 240 MHz, but at 160 - then it does not stutter.

Looks like you wanted to say CPU frequency, not flash frequency. In my project I have implemented dynamic frequency boost. Normally my device acts as zigbee releay @ 80MHz. When MQTT receives notification request (TTS) it bumps the clock to 240M and it has stuttering with polish language. No issues with english TTS. Also no issues with MP3 stream, like web-radio. I'm almost sure that's related to the to sound format returned by the TTS service, like different bps or channel count.

SlavaZagaynov commented 3 hours ago

image

Я еще не закончил мои эксперименты. Пока лучший вариант без заикания TTS при такой установке. (извините, я не знаю английский).