C# Класс Kinect.SpeechManager

Speech manager is the component that deals with Kinect speech recognition.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AddGrammarPhrase() публичный Метод

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.
Результат bool

ClearPhraseRecognized() публичный Метод

Clears the recognized phrase.
public ClearPhraseRecognized ( ) : void
Результат void

GetPhraseConfidence() публичный Метод

Gets the confidence of the currently recognized phrase, in range [0, 1].
public GetPhraseConfidence ( ) : float
Результат float

GetPhraseTagRecognized() публичный Метод

Gets the tag of the recognized phrase.
public GetPhraseTagRecognized ( ) : string
Результат string

IsListening() публичный Метод

Determines whether the speech recogizer is in listening-state.
public IsListening ( ) : bool
Результат bool

IsPhraseRecognized() публичный Метод

Determines whether the speech recognizer has recognized a phrase.
public IsPhraseRecognized ( ) : bool
Результат bool

IsSapiInitialized() публичный Метод

Determines whether SAPI (Speech API) was successfully initialized.
public IsSapiInitialized ( ) : bool
Результат bool

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

OnGUI() публичный Метод

public OnGUI ( ) : void
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void