-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
audio.connecttospeech() function not working on long sentences #630
Comments
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. |
Google limits the length of the string. I don't know of any equivalent free alternative. |
hello, how this "batch" may look alike? sending sentences one after the other will only play the last one ... br andreas |
Hello. If I understood you correctly, then you need to pause equal to the playback time of the last send. I did it so that I counted the number of letters and made a final delay for each letter before sending the next sentence. |
Google TTS is free, but the length is severely limited. So you would have to wait for the |
i tried several attempts with audio_eof_stream, but it always brings the last chunked sentence. i have no idea how to put out a length >100. do you have a code example which will do the job even with truncated chunks of phrases? |
No way. Break it down into several words. Wait for the end of playback and submit a new batch of words to the input. It uses the free version of Google TTS. If you want large packages (25 thousand characters), then only for money. |
what is the length limit of Google TTS free? i estimate around 100 ... |
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
The text was updated successfully, but these errors were encountered: