Speech Basics-WPF-VB Sample
Kinect for Windows 1.5, 1.6, 1.7, 1.8
|This sample requires that you install the Microsoft Speech Platform SDK (see the software requirements to download the Speech SDK).|
When you run this sample, you see the following:
- A turtle that moves based on the speech commands that you give it. The sample recognizes the following commands: "forward," "back," "turn left," and "turn right."
- When the sample recognizes a command, the command appears highlighted in the UI.
|The Sample Uses the Following APIs||To Do This|
|KinectSensor.KinectSensors Property||Get the Kinect sensors that are plugged in and ready for use.|
|KinectSensor.Start Method and KinectSensor.Stop Method||Start or stop the sensor.|
|SpeechRecognitionEngine.InstalledRecognizers method||Get the metadata for a speech recognizer to process audio.|
|SpeechRecognitionEngine class||Create a speech recognition engine.|
|Grammar class||Create a grammar for the speech recognition engine.|
|KinectAudioSource.Start Method and KinectAudioSource.Stop Method||Start and stop the audio data.|
|SpeechRecognizedEventArgs class||Use the event arguments in SpeechRecognized, SpeechRejected, and other functions to get information about an audio sample.|
|SpeechRecognizedEventArgs.Result.Confidence property||Determine whether or not to use the audio sample.|
|SpeechRecognizedEventArgs.Result.Semantics.Value property||Identify the grammar in the audio sample.|
For a detailed discussion of basic speech tasks, see Speech Tasks in C#.
To run a sample you must have the Kinect for Windows SDK installed. To compile a sample, you must have the developer toolkit installed. The latest SDK and developer toolkit are available on the developer download page. If you need help installing the toolkit, look on this page: To Install the SDK and Toolkit. The toolkit includes a sample browser, which you can use to launch a sample or download it to your machine. To open the sample browser, click Start > All Programs > Kinect for Windows SDK [version number] > Developer Toolkit Browser.
If you need help loading a sample in Visual Studio or using Visual Studio to compile, run, or debug, see Opening, Building, and Running Samples in Visual Studio.