Метод | Описание | |
---|---|---|
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 |
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 |
bCommitGrammar | bool | If set to |
Результат | bool |
public GetPhraseTagRecognized ( ) : string | ||
Результат | string |