开发者

conversion of document text to speech

i followed the following tutroial for tts

http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html

but now how do i make it work for documents

i want to extract the text in documents and convert it to speech and want the functionality to stop,pause play functions in it as in a media player

By documents,i mean word,pdf etc.please tell how to extract text from these documents in android.i am newbie t开发者_开发百科o android


Step #1: "Extract the text in documents". That is up to you, as you are the only person on the planet who knows what "documents" you are referring to.

Step #2: "Convert it to speech" using the text-to-speech engine you linked to above, converting the results into an audio file (see the "File rendering and playback" section).

Step #3: Use MediaPlayer to create your own playback activity with "stop,pause play functions" as you see fit.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜