Export (0) Print
Expand All
0 out of 3 rated this helpful - Rate this topic

Speech Basics-WPF-VB Sample

Kinect for Windows 1.5, 1.6, 1.7, 1.8

JJ131048.note(en-us,IEB.10).gifNote
This sample requires that you install the Microsoft Speech Platform SDK (see the software requirements to download the Speech SDK).

Overview

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 APIsTo Do This
KinectSensor.KinectSensors PropertyGet the Kinect sensors that are plugged in and ready for use.
KinectSensor.Start Method and KinectSensor.Stop MethodStart or stop the sensor.
SpeechRecognitionEngine.InstalledRecognizers method Get the metadata for a speech recognizer to process audio.
SpeechRecognitionEngine classCreate a speech recognition engine.
Grammar classCreate a grammar for the speech recognition engine.
KinectAudioSource.Start Method and KinectAudioSource.Stop MethodStart and stop the audio data.
SpeechRecognizedEventArgs classUse the event arguments in SpeechRecognized, SpeechRejected, and other functions to get information about an audio sample.
SpeechRecognizedEventArgs.Result.Confidence propertyDetermine whether or not to use the audio sample.
SpeechRecognizedEventArgs.Result.Semantics.Value propertyIdentify 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.