C# Class Kinect.SpeechManager

Speech manager is the component that deals with Kinect speech recognition.
Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: BrainProject/UnityTemp Class Usage Examples

Public Methods

Method Description
AddGrammarPhrase ( string fromRule, string toRule, string phrase, bool bClearRulePhrases, bool bCommitGrammar ) : bool

Adds a phrase to the from-rule of dynamic grammar. If the to-rule is empty, this means end of the phrase recognition.

ClearPhraseRecognized ( ) : void

Clears the recognized phrase.

GetPhraseConfidence ( ) : float

Gets the confidence of the currently recognized phrase, in range [0, 1].

GetPhraseTagRecognized ( ) : string

Gets the tag of the recognized phrase.

IsListening ( ) : bool

Determines whether the speech recogizer is in listening-state.

IsPhraseRecognized ( ) : bool

Determines whether the speech recognizer has recognized a phrase.

IsSapiInitialized ( ) : bool

Determines whether SAPI (Speech API) was successfully initialized.

OnDestroy ( ) : void
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

AddGrammarPhrase() public method

Adds a phrase to the from-rule of dynamic grammar. If the to-rule is empty, this means end of the phrase recognition.
public AddGrammarPhrase ( string fromRule, string toRule, string phrase, bool bClearRulePhrases, bool bCommitGrammar ) : bool
fromRule string From-rule name.
toRule string To-rule name or empty string.
phrase string The dynamic phrase.
bClearRulePhrases bool If set to true clears current rule phrases before adding this one.
bCommitGrammar bool If set to true commits dynamic grammar changes.
return bool

ClearPhraseRecognized() public method

Clears the recognized phrase.
public ClearPhraseRecognized ( ) : void
return void

GetPhraseConfidence() public method

Gets the confidence of the currently recognized phrase, in range [0, 1].
public GetPhraseConfidence ( ) : float
return float

GetPhraseTagRecognized() public method

Gets the tag of the recognized phrase.
public GetPhraseTagRecognized ( ) : string
return string

IsListening() public method

Determines whether the speech recogizer is in listening-state.
public IsListening ( ) : bool
return bool

IsPhraseRecognized() public method

Determines whether the speech recognizer has recognized a phrase.
public IsPhraseRecognized ( ) : bool
return bool

IsSapiInitialized() public method

Determines whether SAPI (Speech API) was successfully initialized.
public IsSapiInitialized ( ) : bool
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void