Speech Command

 

Lately I have been playing with the Microsoft SAPI speech engine. This is my second project program, the first being my "Custom Voice Startup" program which can be found under the Visual Basic Files menu for download.

 

The Speech engine used is the SAPI 5.1 engine found in Microsoft Windows XP. This was chosen because it interfaces nicely with Visual Basic.

 

Ollie's Speech Command Interface:

 

Click to Enlarge

 

The underlying code that utilises the SAPI engine is basically the same as the Custom Voice Startup program with a few modifications.

 

Once the Start Listening button is pressed, the program continually listens for key words, which are then used in a "Case select" statement to decide on an action. eg. word heard "play" set the Windows Mediaplayer control to play the open file.

 

There are other functions I have implemented in the program such as, Date (speaks the current date), Internet (opens IExplorer), Search (opens google), exit (closes all current windows that have been opened by the program), Who are you? (responds with the computer name text box followed by what the program is) and Help (responds with available commands). There are more commands, but I'll let you find them!

 

Things to note:

 

-SAPI 5.1 must be installed and configured, you also need a microphone (duh), also the recognition accuracy is based upon the quality of audio that the computer hears.

 

-Microsoft Windows must be used (sorry Linux fans but I can't code for that)

 

-The name fields should be filled in before pressing Start Listening, also a playlist or mp3/video should be chosen too.

 

-The program is written in VB6, but the installer will install runtime files needed

 

The program is certified Virus Free from my website.

 

 

Download

8.5Mb Zip

(extract and execute Setup.exe)

 

If you would like the source code for this program, please email me!

 

 

Update: I am currently developing a new command interface with hopes of using it in an animatronic robot head I am currently building. Any help with developing suitable software to interface with an AIML chatbot and Speech Recognition program would be greatly appeciated.

 

 

 

 

 

Please do not reproduce anything contained within my website, as it maybe hazardous to your health unless you fully understand what you are doing.

I cannot be held responsible. This website is copyright.

© Oliver Hunt 2006-2011