Class DictationHandler
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.
Inheritance
DictationHandler
Implements
MonoBehaviour
IEventSystemHandler
Assembly: cs.temp.dll.dll
public class DictationHandler : BaseInputHandler, MonoBehaviour, IMixedRealityDictationHandler, IEventSystemHandler
Fields
Event raised when the recognizer stops. Contains the final recognized string.
Declaration
public DictationHandler.StringUnityEvent OnDictationComplete
Field Value
Event raised when the recognizer stops. Contains the final recognized string.
Declaration
public DictationHandler.StringUnityEvent OnDictationComplete
Field Value
Event raised when an error occurs. Contains the string representation of the error reason.
Declaration
public DictationHandler.StringUnityEvent OnDictationError
Field Value
Event raised when an error occurs. Contains the string representation of the error reason.
Declaration
public DictationHandler.StringUnityEvent OnDictationError
Field Value
Event raised while the user is talking. As the recognizer listens, it provides text of what it's heard so far.
Declaration
public DictationHandler.StringUnityEvent OnDictationHypothesis
Field Value
Event raised while the user is talking. As the recognizer listens, it provides text of what it's heard so far.
Declaration
public DictationHandler.StringUnityEvent OnDictationHypothesis
Field Value
Event raised after the user pauses, typically at the end of a sentence. Contains the full recognized string so far.
Declaration
public DictationHandler.StringUnityEvent OnDictationResult
Field Value
Event raised after the user pauses, typically at the end of a sentence. Contains the full recognized string so far.
Declaration
public DictationHandler.StringUnityEvent OnDictationResult
Field Value
Methods
Declaration
protected override void OnDisable()
Overrides
Declaration
protected override void OnDisable()
Overrides
Declaration
protected override void RegisterHandlers()
Overrides
Declaration
protected override void RegisterHandlers()
Overrides
Declaration
protected override void Start()
Overrides
Declaration
protected override void Start()
Overrides
Start a recording session in the dictation system.
Declaration
public void StartRecording()
Start a recording session in the dictation system.
Declaration
public void StartRecording()
Stop a recording session in the dictation system.
Declaration
public void StopRecording()
Stop a recording session in the dictation system.
Declaration
public void StopRecording()
Declaration
protected override void UnregisterHandlers()
Overrides
Declaration
protected override void UnregisterHandlers()
Overrides
Explicit Interface Implementations
Declaration
void IMixedRealityDictationHandler.OnDictationComplete(DictationEventData eventData)
Parameters
Declaration
void IMixedRealityDictationHandler.OnDictationComplete(DictationEventData eventData)
Parameters
Declaration
void IMixedRealityDictationHandler.OnDictationError(DictationEventData eventData)
Parameters
Declaration
void IMixedRealityDictationHandler.OnDictationError(DictationEventData eventData)
Parameters
Declaration
void IMixedRealityDictationHandler.OnDictationHypothesis(DictationEventData eventData)
Parameters
Declaration
void IMixedRealityDictationHandler.OnDictationHypothesis(DictationEventData eventData)
Parameters
Declaration
void IMixedRealityDictationHandler.OnDictationResult(DictationEventData eventData)
Parameters
Declaration
void IMixedRealityDictationHandler.OnDictationResult(DictationEventData eventData)
Parameters
Implements
MonoBehaviour
IEventSystemHandler