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

audio.connecttospeech() function not working on long sentences

Open DuyenCdt opened this issue 1 year ago • 9 comments

I get a memory error message when using a long sentence in the audio.connecttospeech() function, is there any way to save that sentence to SD memory instead of Esp32 memory, or is there another way to save it to free memory on Esp32? Thank you image

DuyenCdt avatar Dec 20 '23 03:12 DuyenCdt

Even if you have a lot more memory, the long message won't work. This is some kind of error and apparently an additional check for buffer overflow is needed. This is observed in many people. I split the text into lines and send it in batches, otherwise an error reboot occurs.

spikepavel avatar Jan 06 '24 08:01 spikepavel

Google limits the length of the string. I don't know of any equivalent free alternative.

schreibfaul1 avatar Jan 06 '24 12:01 schreibfaul1