Class SpeechInputHandler
Inheritance
SpeechInputHandler
Implements
IEventSystemHandler
Assembly: cs.temp.dll.dll
public class SpeechInputHandler : BaseInputHandler, IMixedRealitySpeechHandler, IMixedRealityBaseInputHandler, IEventSystemHandler
Properties
The keywords to be recognized and optional keyboard shortcuts.
Declaration
public KeywordAndResponse[] Keywords { get; }
Property Value
Tooltip prefab used to display confirmation label. Optional.
Declaration
public SpeechConfirmationTooltip SpeechConfirmationTooltipPrefab { get; set; }
Property Value
Type |
Description |
SpeechConfirmationTooltip |
|
Methods
Declaration
public void AddResponse(string keyword, UnityAction action)
Parameters
Type |
Name |
Description |
String |
keyword |
|
UnityAction |
action |
|
Declaration
protected override void RegisterHandlers()
Overrides
Declaration
public void RemoveResponse(string keyword, UnityAction action)
Parameters
Type |
Name |
Description |
String |
keyword |
|
UnityAction |
action |
|
Declaration
protected override void Start()
Overrides
Declaration
protected override void UnregisterHandlers()
Overrides
Explicit Interface Implementations
Declaration
void IMixedRealitySpeechHandler.OnSpeechKeywordRecognized(SpeechEventData eventData)
Parameters
Implements
IEventSystemHandler