Search code examples
javaandroidtext-to-speechandroid-developer-api

How to know if Text to speech is in progress?


While using Text-To-Speech , how can we know if text to speech is in progress or not ? Progress mean it is converting text to voice


Solution

  • Use this code to check if tts is in progress or not

      if (!tts.isSpeaking()) {
                        ///your code
                    }