Speech Recognition

Rounding up

Okay fellow disciples, we are almost home. The final styling we will do is to show the Phrase in the label so the user will know what was spit out by speech engine. We can accomplish this by putting some code in the PhraseFinish procedure.

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.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Owning a computer without programming is like having a kitchen and using only the microwave oven” - Charles Petzold