
To do that, I'm using "Quick Input", which you can find under "Other", "VoiceAttack Action". I use "new function" to quickly outline a new function for me. That was an easy one, so let's look at something more interesting. So to handle that, since I say this often, I just setup a new command for "slap slap" that hits "Enter" twice. So it won't do an "Enter" at all in that case, it will just show up as an unrecognized command. One thing to watch out for, is if I say "slap slap" (quickly twice like that), VoiceAttack will consider that its own command. If you're not getting this to work, one thing to check is if your IDE is running in administrator mode like mine, then VoiceAttack must also be run as an administrator. In the "Edit a Profile" window click "Apply", and now with VSCode in focus, when I say "slap" a carriage return will happen. In the window that pops up, you can just press the key you want on your keyboard, so in this case "Enter", click "OK", and then just save it by clicking "OK" again. Set "When I say" to "slap", and "when this command executes" select "Key Press". To do that you'd just edit the profile, and create a new command. Let's start with the "slap" command, which in my profile just presses "Enter" on the keyboard. Let me show you how I setup these commands so you can build something custom for yourself. You can download my Python VoiceAttack profile if you want to start with that, or you can create a new one.

You can create different profiles to use with different applications. You'll want to monitor the log over here when you're first using this software to get a feel for how it's working. In the options, which you get to from the wrench in lower right, and under "Recognition", I checked "show confidence level" so I can get a feel for how well the voice recognition is understanding me. VoiceAttack provides the glue between the text to speech engine and executing your macros in response to what that engine hears.

VoiceAttack is uses the Windows Speech Engine that's built into Windows to perform its voice recognition. I first learned about Voice Attack while playing Elite Dangerous. In this video, I let you know what I think and how to set it up for yourself using Voice Attack. Programming with voice recognition is something I've wanted to try for a while.
