mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class SpeechInputHandler

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

    Inheritance
    Object
    InputSystemGlobalHandlerListener
    BaseInputHandler
    SpeechInputHandler
    Implements
    MonoBehaviour
    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, MonoBehaviour, IMixedRealitySpeechHandler, IMixedRealityBaseInputHandler, IEventSystemHandler

    Properties

    Keywords

    The keywords to be recognized and optional keyboard shortcuts.

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

    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

    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

    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()

    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

    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()

    Start()

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

    UnregisterHandlers()

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

    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

    IMixedRealitySpeechHandler.OnSpeechKeywordRecognized(SpeechEventData)

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

    Implements

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