news-android
news-android copied to clipboard
Text To Speech (TTS) fails for large articles
Text to speech does not produce any sound for large articles. Additionally the play/pause notification becomes stuck and is impossible to dismiss unless the app is force stopped. I encountered the issue for articles in both English and Greek (see issue #288).
It seems to work for longer English articles than it does Greek, probably because English letters need just 1 byte in UTF-8 whereas Greek letters need 2 bytes. There is probably a length constraint somewhere, maybe even in the Android TTS engine, but in any case failure to play the article should probably be handled gracefully. A popup error message would also be useful.
Thank you for your detailed explanation and investigation of this error. I found that there is apparently a limit on how many characters the android tts engine can read/speak.
Reference:
- https://stackoverflow.com/a/19314133
- https://stackoverflow.com/a/39695997
Is this still an issue? The limits probably changed throughout the years - If so, please reopen