Author Topic: how do i make VA recognize commands within an application  (Read 1937 times)

robotco

  • Newbie
  • *
  • Posts: 2
how do i make VA recognize commands within an application
« on: December 25, 2023, 06:54:17 AM »
very simply, all I want voiceattack for is for controlling MusicBee. and all I want to do is say 'pause', 'resume', and 'next track'

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4767
  • RTFM
Re: how do i make VA recognize commands within an application
« Reply #1 on: December 25, 2023, 09:17:59 AM »
And you want those commands to only function while the application has focus, is that what you mean with the title of this topic?

robotco

  • Newbie
  • *
  • Posts: 2
Re: how do i make VA recognize commands within an application
« Reply #2 on: December 25, 2023, 11:27:20 PM »
yeah, i play a lot of board games and just let MusicBee play my collection at random. I'd just like to skip songs without having to get up.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4767
  • RTFM
Re: how do i make VA recognize commands within an application
« Reply #3 on: December 26, 2023, 12:44:50 AM »
That can be done using the "Stop command if target window focus is lost" option, within those individual commands.

You'll need to set a target, either at the profile level (which is preferred, so that if that target ever needs to be changed, you only need to do so once), or for each individual command at the command level.


Given that you're indicating that you wouldn't be at your computer, do note that a (USB) headset is the recommended input device for speech recognition.

Using a (desktop) microphone that's located at your computer while you're elsewhere could lead to low recognition accuracy, and especially with the very short command phrases in your example, lead to unintended recognition.

If you're playing music through speakers, that would exacerbate the issue, as would having conversations while the speech recognition system is listening (it is designed to recognize speech, so that's what it'll attempt to do; it can't know whether your actually intending to issue a command).


Some type of wireless remote may be more suitable to your intended application. A wireless presentation remote (I.E. for slideshows/PowerPoint presentations) could be suitable, taking into account the size of the device, and the distance from your computer.
You would need to either configure your music player to respond to the specific keypresses the remote produces, or use an application like VoiceAttack to essentially re-map them to the keyboard shortcuts your music player is expecting.