C# Class HoloToolkit.Unity.KeywordManager

KeywordManager allows you to specify keywords and methods in the Unity Inspector, instead of registering them explicitly in code. This also includes a setting to either automatically start the keyword recognizer or allow your code to start it. IMPORTANT: Please make sure to add the microphone capability in your app, in Unity under Edit -> Project Settings -> Player -> Settings for Windows Store -> Publishing Settings -> Capabilities or in your Visual Studio Package.appxmanifest capabilities.
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Methods

Method Description
OnDestroy ( ) : void
Start ( ) : void
StartKeywordRecognizer ( ) : void

Make sure the keyword recognizer is off, then start it. Otherwise, leave it alone because it's already in the desired state.

StopKeywordRecognizer ( ) : void

Make sure the keyword recognizer is on, then stop it. Otherwise, leave it alone because it's already in the desired state.

Update ( ) : void

Private Methods

Method Description
KeywordRecognizer_OnPhraseRecognized ( PhraseRecognizedEventArgs args ) : void
ProcessKeyBindings ( ) : void

Method Details

OnDestroy() public method

public OnDestroy ( ) : void
return void

Start() public method

public Start ( ) : void
return void

StartKeywordRecognizer() public method

Make sure the keyword recognizer is off, then start it. Otherwise, leave it alone because it's already in the desired state.
public StartKeywordRecognizer ( ) : void
return void

StopKeywordRecognizer() public method

Make sure the keyword recognizer is on, then stop it. Otherwise, leave it alone because it's already in the desired state.
public StopKeywordRecognizer ( ) : void
return void

Update() public method

public Update ( ) : void
return void