java - how to call speak method multiple times -
i'm trying call speak
method of class texttospeech
multiple times, not seem work - speaks last phrase each time.
string temp="abcd"; ss(temp); string temp1="wxyz"; ss(temp1); public void ss(string t){ tts.speak(t, texttospeech.queue_flush, null); }
tts
object of class texttospeech
method.
your question not explains if multiple time simultany or every time 5 seconds example, can try:
thread thread = new thread(new runnable() { @override public void run() { ss("string text"); } }); thread.start();
Comments
Post a Comment