user897013
user897013

Reputation: 165

Android: Question about TTS use

I'm using a TTS engine, and i want to disable the buttons until the tts message has finished, so the user can't select an option on the screen until the tts message has been listened completely.

I've been trying using

while (tts.isSpeaking())
{
    button.setclickable(false);
}
button.setclickable(true);

but it's not working.

I guess that is because tts.isSpeaking doesn't work as i expected.

Upvotes: 1

Views: 674

Answers (1)

Related Questions