Speech Basics-WPF C# 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:
- The sample captures streaming audio from a Kinect using a speech recognition engine (SRE).
- After you provide the grammar for the engine, the sample writes out hypothesized and recognized text to a command window.
|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 or stop the audio data.|
|SpeechRecognizedEventArgs class||Use the event arguments in functions, such as SpeechRecognized and SpeechRejected, 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.|
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.