mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class SpeechInputHandler

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

    Inheritance
    Object
    InputSystemGlobalHandlerListener
    BaseInputHandler
    SpeechInputHandler
    Implements
    IMixedRealitySpeechHandler
    IMixedRealityBaseInputHandler
    IEventSystemHandler
    Inherited Members
    BaseInputHandler.IsFocusRequired
    BaseInputHandler.OnEnable()
    BaseInputHandler.Update()
    BaseInputHandler.OnDisable()
    InputSystemGlobalHandlerListener.EnsureInputSystemValid()
    Namespace: Microsoft.MixedReality.Toolkit.Input
    Assembly: cs.temp.dll.dll
    Syntax
    public class SpeechInputHandler : BaseInputHandler, IMixedRealitySpeechHandler, IMixedRealityBaseInputHandler, IEventSystemHandler

    Properties

    Keywords

    The keywords to be recognized and optional keyboard shortcuts.

    Declaration
    public KeywordAndResponse[] Keywords { get; }
    Property Value
    Type Description
    KeywordAndResponse[]

    SpeechConfirmationTooltipPrefab

    Tooltip prefab used to display confirmation label. Optional.

    Declaration
    public SpeechConfirmationTooltip SpeechConfirmationTooltipPrefab { get; set; }
    Property Value
    Type Description
    SpeechConfirmationTooltip

    Methods

    AddResponse(String, UnityAction)

    Declaration
    public void AddResponse(string keyword, UnityAction action)
    Parameters
    Type Name Description
    String keyword
    UnityAction action

    RegisterHandlers()

    Declaration
    protected override void RegisterHandlers()
    Overrides
    InputSystemGlobalHandlerListener.RegisterHandlers()

    RemoveResponse(String, UnityAction)

    Declaration
    public void RemoveResponse(string keyword, UnityAction action)
    Parameters
    Type Name Description
    String keyword
    UnityAction action

    Start()

    Declaration
    protected override void Start()
    Overrides
    BaseInputHandler.Start()

    UnregisterHandlers()

    Declaration
    protected override void UnregisterHandlers()
    Overrides
    InputSystemGlobalHandlerListener.UnregisterHandlers()

    Explicit Interface Implementations

    IMixedRealitySpeechHandler.OnSpeechKeywordRecognized(SpeechEventData)

    Declaration
    void IMixedRealitySpeechHandler.OnSpeechKeywordRecognized(SpeechEventData eventData)
    Parameters
    Type Name Description
    SpeechEventData eventData

    Implements

    IMixedRealitySpeechHandler
    IMixedRealityBaseInputHandler
    IEventSystemHandler
    In This Article
    • Properties
      • Keywords
      • SpeechConfirmationTooltipPrefab
    • Methods
      • AddResponse(String, UnityAction)
      • RegisterHandlers()
      • RemoveResponse(String, UnityAction)
      • Start()
      • UnregisterHandlers()
    • Explicit Interface Implementations
      • IMixedRealitySpeechHandler.OnSpeechKeywordRecognized(SpeechEventData)
    • Implements
    Back to top Generated by DocFX