In what circumstances does TextToSpeech.isSpeaking () return true?

The documentation says: "Checks if the TTS mechanism is working."

But I just made a call isSpeaking()to onUtteranceCompletedListener, where I have at least 10 pending statements, and in none of them I got true.

Assuming that it isSpeaking()really works as documented, I must conclude that I am misplacing it.

What are the points at which a call to TextToSpeech.isSpeaking () returns a valid result?

+5
source share
1 answer

Answering the question if you come across this question (also not answered):

IsSpeaking () issue when using Text-to-Speech on Android

TtsService :

public boolean isSpeaking() {
  return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));
}

, TTS , 0.

+1

All Articles