Edit

Share via


SpeechInputHandler Class

Definition

This component handles the speech input events raised form the IMixedRealityInputSystem.

public ref class SpeechInputHandler : Microsoft::MixedReality::Toolkit::Input::BaseInputHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySpeechHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/SpeechInputHandler")]
[UnityEngine.DisallowMultipleComponent]
public class SpeechInputHandler : Microsoft.MixedReality.Toolkit.Input.BaseInputHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySpeechHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/SpeechInputHandler")>]
[<UnityEngine.DisallowMultipleComponent>]
type SpeechInputHandler = class
    inherit BaseInputHandler
    interface IMixedRealitySpeechHandler
    interface IMixedRealityBaseInputHandler
    interface IEventSystemHandler
Public Class SpeechInputHandler
Inherits BaseInputHandler
Implements IEventSystemHandler, IMixedRealitySpeechHandler
Inheritance
UnityEngine.MonoBehaviour
SpeechInputHandler
Attributes
UnityEngine.AddComponentMenuAttribute UnityEngine.DisallowMultipleComponentAttribute
Implements
IMixedRealityBaseInputHandler IMixedRealitySpeechHandler UnityEngine.EventSystems.IEventSystemHandler

Constructors

SpeechInputHandler()

Properties

IsFocusRequired

Is Focus required to receive input events on this GameObject?

(Inherited from BaseInputHandler)
Keywords

The keywords to be recognized and optional keyboard shortcuts.

SpeechConfirmationTooltipPrefab

Tooltip prefab used to display confirmation label. Optional.

Methods

AddResponse(String, UnityAction)
EnsureInputSystemValid()

A task that will only complete when the input system has in a valid state.

(Inherited from InputSystemGlobalHandlerListener)
OnDisable() (Inherited from BaseInputHandler)
OnEnable() (Inherited from BaseInputHandler)
RegisterHandlers()
RemoveResponse(String, UnityAction)
Start()
UnregisterHandlers()
Update() (Inherited from BaseInputHandler)

Explicit Interface Implementations

IMixedRealitySpeechHandler.OnSpeechKeywordRecognized(SpeechEventData)

Applies to