DictationHandler Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Script used to start and stop recording sessions in the current dictation system and report the transcribed text via UnityEvents. For this script to work, a dictation system like 'Windows Dictation Input Provider' must be added to the Data Providers in the Input System profile.
public ref class DictationHandler : Microsoft::MixedReality::Toolkit::Input::BaseInputHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityDictationHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/DictationHandler")]
public class DictationHandler : Microsoft.MixedReality.Toolkit.Input.BaseInputHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityDictationHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/DictationHandler")>]
type DictationHandler = class
inherit BaseInputHandler
interface IMixedRealityDictationHandler
interface IEventSystemHandler
Public Class DictationHandler
Inherits BaseInputHandler
Implements IEventSystemHandler, IMixedRealityDictationHandler
- Inheritance
- Attributes
-
UnityEngine.AddComponentMenuAttribute
- Implements
-
IMixedRealityDictationHandler Unity
Engine. Event Systems. IEvent System Handler
On |
Event raised when the recognizer stops. Contains the final recognized string. |
On |
Event raised when an error occurs. Contains the string representation of the error reason. |
On |
Event raised while the user is talking. As the recognizer listens, it provides text of what it's heard so far. |
On |
Event raised after the user pauses, typically at the end of a sentence. Contains the full recognized string so far. |
Audio |
Get the last audio clip from the dictation session |
Is |
Is Focus required to receive input events on this GameObject? (Inherited from BaseInputHandler) |
Is |
Get the listening state |
Ensure |
A task that will only complete when the input system has in a valid state. (Inherited from InputSystemGlobalHandlerListener) |
On |
|
On |
(Inherited from BaseInputHandler) |
Register |
Overload this method to specify, which global events component wants to listen to. Use RegisterHandler API of InputSystem |
Start() | |
Start |
Start a recording session in the dictation system. |
Stop |
Stop a recording session in the dictation system. |
Unregister |
Overload this method to specify, which global events component should stop listening to. Use UnregisterHandler API of InputSystem |
Update() | (Inherited from BaseInputHandler) |
Produit | Versions |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |