Questions tagged [onutterancecompleted]

19 questions
0
votes
0 answers

Intent within onUtteranceCompleted method not working

I am trying to implement an intent to take the user back to the home screen once the TextToSpeech function completes, but it isn't working, and I'm not sure why. Here is my code: public void playText(){ String text =…
embersofadyingfire
  • 523
  • 1
  • 4
  • 16
0
votes
1 answer

Implement vibration when TextToSpeech action is completed

I'm working on a project that requires an alert through a vibration when the TextToSpeech function completes a message. I've implemented the TextToSpeech function, and know how to create a vibration, but I'm not sure where to code the…
0
votes
2 answers

Android STT onResult not firing after TTS onUtteranceCompleted

I'm trying to make an app that provides direction for people with visual impairment. The app will provide instructions (using TTS) and get user commands (using STT). Here is the code for my MainActivity //InteractionCompletedEvent is my custom event…
-1
votes
2 answers

Android: Only the original thread that created a view hierarchy can touch its views

I am getting error "android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views" when I call listenButton.setAlpha((float)1) in the code below. I understand why, but how can I…
user411103
1
2