C# 클래스 Kinect.SpeechManager

Speech manager is the component that deals with Kinect speech recognition.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp 1 사용 예제들

공개 메소드들

메소드 설명
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