Open podaen opened 3 years ago
I toke a piek at...
And reduced the sample rate like this
out->SetRate(22050);//44100
The example is running more stable now in my first test. Mybe it has something to do with with my custom partition table of spiffs. I don't know.
nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, app0, app, ota_0, 0x10000, 0x1E0000, app1, app, ota_1, 0x1F0000,0x1E0000, eeprom, data, 0x99, 0x3D0000,0x1000, spiffs, data, spiffs, 0x3D1000,0x2F000,
For the TTS, it plays now but it still keeps being in the loop. When I enable the debug level too debug, I get this log.
[ 12395][D][HTTPClient.cpp:385] disconnect(): tcp keep open for reuse
After a while I get
[248395][D][HTTPClient.cpp:385] disconnect(): tcp keep open for reuse [248895][D][WiFiClient.cpp:528] connected(): Disconnected: RES: 0, ERR: 128 [248895][D][HTTPClient.cpp:400] disconnect(): tcp is closed
[248896][D][HTTPClient.cpp:400] disconnect(): tcp is closed
STATUS(buffer) '3' = 'Buffer underflow' [248912][D][HTTPClient.cpp:400] disconnect(): tcp is closed
[248917][D][HTTPClient.cpp:400] disconnect(): tcp is closed
Running for 248917 ms... STATUS(buffer) '2' = 'Refilling buffer' [248933][D][HTTPClient.cpp:400] disconnect(): tcp is closed
[248934][D][HTTPClient.cpp:400] disconnect(): tcp is closed
STATUS(buffer) '3' = 'Buffer underflow' [248948][D][HTTPClient.cpp:400] disconnect(): tcp is closed
[248953][D][HTTPClient.cpp:400] disconnect(): tcp is closed
STATUS(buffer) '2' = 'Refilling buffer' [248963][D][HTTPClient.cpp:400] disconnect(): tcp is closed
... STATUS(buffer) '3' = 'Buffer underflow' [249337][D][HTTPClient.cpp:400] disconnect(): tcp is closed
[249342][D][HTTPClient.cpp:400] disconnect(): tcp is closed
STATUS(buffer) '2' = 'Refilling buffer' [249351][D][HTTPClient.cpp:400] disconnect(): tcp is closed
[249352][D][HTTPClient.cpp:400] disconnect(): tcp is closed
STATUS(buffer) '3' = 'Buffer underflow' [249366][D][HTTPClient.cpp:400] disconnect(): tcp is closed
STATUS(mp3) '1' = 'Decoding error 'input buffer too small (or EOF)' at byte offset' MP3:ERROR_BUFLEN 0 STATUS(buffer) '2' = 'Refilling buffer' [249384][D][HTTPClient.cpp:400] disconnect(): tcp is closed
[249384][D][HTTPClient.cpp:400] disconnect(): tcp is closed
STATUS(buffer) '3' = 'Buffer underflow' [249399][D][HTTPClient.cpp:400] disconnect(): tcp is closed
stop [249399][D][HTTPClient.cpp:400] disconnect(): tcp is closed
MP3 done
It toke only 1 second to stop after the tcp was closed. But this is going no where. Mybe if I could detect the state of this play button... A radio doesn't have that issue.
And now I see the type of audio is mpeg, Could this be the cause?
I have an esp32 wroom with an external dac like this
I am able to play the link with reasonble quality. The problem start with this log: STATUS(buffer) '3' = 'Buffer underflow' I don't know how to solve this problem. Please any help would be appreciated.
log your example
Conculsion: radio stops playing and stops emmiditly
log of TTS
Conculsion: code stops running here "if (!mp3->loop()) {" and after minutes it returns running.