shefenfei / android-daisy-epub-reader

Automatically exported from code.google.com/p/android-daisy-epub-reader
0 stars 1 forks source link

NewStory: Read aloud fulltext DAISY books #84

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The new app displays the contents of DAISY books but does not yet read aloud 
the text contents. We would like to add functionality to this app to 'read 
aloud' these DAISY books.

This story is one of several I'm adding. We may also create simpler test apps 
to explore how TTS works on various revisions of the Android platform, 
particularly for 2.x Android versions.

As ever, how to implement the capability isn't yet clear or straightforward.

Original issue reported on code.google.com by julianharty on 16 Dec 2013 at 7:50

GoogleCodeExporter commented 8 years ago
Some design and implementation considerations:

The TTS engine accepts limited amounts of text. Revision 18 and later of 
Android has an explicit call  
http://developer.android.com/reference/android/speech/tts/TextToSpeech.html#getM
axSpeechInputLength%28%29 for other earlier versions of Android we need to 
determine a safe maximum length of text to provide. We don't yet know if the 
Android support library supports this API call.

There are subtleties with calling 'speak(...)' in order to correctly queue and 
have text read aloud.

Original comment by julianharty on 16 Dec 2013 at 7:57