开发者

How to read Toast notification aloud?

开发者 https://www.devze.com 2023-03-30 02:06 出处:网络
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

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...

0

精彩评论

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