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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -