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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

php - Need to store a large amount of data in session with CI 3 but on storing large data in session it is itself destorying automatically -