Exercise 19

Summary

Create an application which can, upon hearing a specific voice command, reply by speaking a specific phrase.

Solution

Microsoft's Speech API makes it surprisingly easy to add both voice recognition and text to speech to an application. I was hoping to use version 5.3 of the API, but after downloading and install Windows SDK 6.1, which includes Speech API 5.3, it wasn't listed in Visual Studio 2002 in the "Add References" dialog.

I ended up using version 5 of the API, which is all the way back from 2001. The text-to-speech quality is brutal, but the programming steps would be about the same regardless of which API you use.

Download

Click here