C# Class KinectMenu.SpeechEngine

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static getInstance ( ) : SpeechEngine
Résultat SpeechEngine

registerSpeechRecognized() public méthode

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

registerSpeechRejected() public méthode

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

removeSpeechRecognized() public méthode

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

removeSpeechRejected() public méthode

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