Export (0) Print
Expand All

Speech Basics-WPF C# Sample

Kinect for Windows 1.5, 1.6, 1.7, 1.8

Hh855387.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:

  • 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 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 methodGet 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 or stop the audio data.
SpeechRecognizedEventArgs classUse the event arguments in functions, such as SpeechRecognized and SpeechRejected, 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.

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.

Community Additions

ADD
Show:
© 2014 Microsoft