Android - How To Tell If TalkBack Is Talking And Stopping TTS Talks

0

Good morning. I'm working with TextToSpeech on android to speak a sequence of texts. as it's a big string I'm using a new thread for this. the problem is that when talkback speech accessibility is enabled, it stops reading my app to speak the notifications of the device, read other buttons when the user touches the screen, etc. I need to know when the talkback will speak so I interrupt my thread, and when the talkback finishes announcing whatever it is, my tts will be able to resume reading. what's happening is that my tts reads line 1, line 2, line 3 (so talkback says something) and my tts did not read line 4, line 5 ... (...) and just went back to speaks after the talkback, there to line 50, 60, since my repetition that is in the thread keeps running and the speaker is being occupied by the talkback.  Does anyone have any guidance / solution for this?  Thank you very much in advance.  Hugs.

    
asked by anonymous 12.09.2018 / 16:56

0 answers