Put the following code in PhraseFinish procedure.
If Phrase <> "" Then
Label1.caption = "Matched word is " &
Phrase
Else
Label1.caption = "No word matched"
End If
Save your project and keep it close to you. Press F5 and let the baby run.
Say the commands like Notepad and watch the program open. Radically cool right?!
Puts a whole new meaning to "Hey Mom, no hands!".
As you can see, this is only the beginning and the potential of voice command
is as far as your imagination will take you. In our next article, we will add
more features to the program like, having our computer talk back to you. I can
see some user arguing with their computer already. Well good luck and happy
programming.
Comments