Author Topic: Stop VA from listening when text-to-speech engine is talking  (Read 919 times)

emmapoc

  • Newbie
  • *
  • Posts: 2
Stop VA from listening when text-to-speech engine is talking
« on: February 06, 2020, 03:55:12 PM »
This one has me stumped and I can't find a solution. Is there a global key to will do what's on the header? I find it that sometimes when the text-to-speech engine talks (as in feedback to a command) VA is listening and can start executing the command again resulting in a loop. Thank you for any help.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4761
  • RTFM
Re: Stop VA from listening when text-to-speech engine is talking
« Reply #1 on: February 06, 2020, 05:08:30 PM »
There is currently no global method to act upon TTS audio playing, or to find out whether TTS audio is playing (the latter has already been requested).

You could do this manually within your commands, E.G.
Code: [Select]
Stop VoiceAttack listening
Say, 'text to speech text'  (and wait until it completes)
Start VoiceAttack listening

You may need to add a short pause between the TTS action and resuming listening.

emmapoc

  • Newbie
  • *
  • Posts: 2
Re: Stop VA from listening when text-to-speech engine is talking
« Reply #2 on: February 06, 2020, 05:13:59 PM »
You could do this manually within your commands, E.G.

Thank you!