I'm developing an android text to speech message application.When the message received as a Toast notification, I want to read it aloud.So how can I read the message inside the Toast notification as a voice.
There are 3 classes in my project 1) for sending message 2)receiving message 3)public class Text2Speech extends Activity implements OnInitListener(to convert to voice)
I want to pass the Toast class notification into Text2Speech class from receiving class inorder to convert it into voice.开发者_如何学JAVAPlease tell me how can I do this,, and how can I invoke my Text2Speech class when I received a message notification.
http://developer.android.com/resources/articles/tts.html
This Documentation explains the text to speech including examples...
精彩评论