news-android icon indicating copy to clipboard operation
news-android copied to clipboard

Text To Speech (TTS) fails for large articles

Open sotpapathe opened this issue 5 years ago • 1 comments

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.

sotpapathe avatar Feb 13 '20 21:02 sotpapathe

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

David-Development avatar Feb 17 '20 23:02 David-Development

Is this still an issue? The limits probably changed throughout the years - If so, please reopen

David-Development avatar Jan 31 '24 10:01 David-Development