C# Class Kinect.SpeechManager

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

Méthodes publiques

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

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.
Résultat bool

ClearPhraseRecognized() public méthode

Clears the recognized phrase.
public ClearPhraseRecognized ( ) : void
Résultat void

GetPhraseConfidence() public méthode

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

GetPhraseTagRecognized() public méthode

Gets the tag of the recognized phrase.
public GetPhraseTagRecognized ( ) : string
Résultat string

IsListening() public méthode

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

IsPhraseRecognized() public méthode

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

IsSapiInitialized() public méthode

Determines whether SAPI (Speech API) was successfully initialized.
public IsSapiInitialized ( ) : bool
Résultat bool

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void