C# Class KinectMenu.SpeechEngine

The class that handles audio from the kinect.
Datei anzeigen Open project: NUIC/2-Kinects-1-Machine Class Usage Examples

Public Methods

Method Description
getInstance ( ) : SpeechEngine
registerSpeechRecognized ( EventHandler handler ) : void

Registers a speech recognized event with the speech engine.

registerSpeechRejected ( EventHandler handler ) : void

Registers a speech rejected event with the speech engine.

removeSpeechRecognized ( EventHandler handler ) : void

Removes the speech recognized event handler from the speech engine.

removeSpeechRejected ( EventHandler handler ) : void

Removes the speech rejected event handler from the speech engine.

Private Methods

Method Description
GetKinectRecognizer ( ) : RecognizerInfo
InitializeKinectAudio ( ) : RecognizerInfo

Finds and sets up the Kinect audio source.

InitializeSpeech ( ) : void

Called by the constructor. Sets up the kinect audio source, the grammar and the speech engine.

SpeechEngine ( ) : System

Method Details

getInstance() public static method

public static getInstance ( ) : SpeechEngine
return SpeechEngine

registerSpeechRecognized() public method

Registers a speech recognized event with the speech engine.
public registerSpeechRecognized ( EventHandler handler ) : void
handler EventHandler The speech recognized handler to register
return void

registerSpeechRejected() public method

Registers a speech rejected event with the speech engine.
public registerSpeechRejected ( EventHandler handler ) : void
handler EventHandler The speech rejected handler to register
return void

removeSpeechRecognized() public method

Removes the speech recognized event handler from the speech engine.
public removeSpeechRecognized ( EventHandler handler ) : void
handler EventHandler
return void

removeSpeechRejected() public method

Removes the speech rejected event handler from the speech engine.
public removeSpeechRejected ( EventHandler handler ) : void
handler EventHandler
return void