After recently seeing advert’s on the TV for Tom Clancy’s EndWar game which features voice activated commands to control the game, I wondered whether this would be possible in Flash.
I have MacSpeech Dictate installed because of problems typing for a long time, so I wondered if this could be used to pass text to Flash. The solution was reasonably simple to achieve. All I had to do was place an input text field on the stage and set up the code to continually make it the focus. Then some if statements have been set up to check the input commands of the text field and respond to them whilst clearing the input field ready for the next command.
Click the image to see a video of the demo in action.