Class DictationEventData
Describes an Input Event with voice dictation.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Input
Assembly: cs.temp.dll.dll
Syntax
public class DictationEventData : BaseInputEventData
Constructors
DictationEventData(EventSystem)
Constructor.
Declaration
public DictationEventData(EventSystem eventSystem)
Parameters
Type | Name | Description |
---|---|---|
EventSystem | eventSystem | Typically will be EventSystems.EventSystem.current |
Properties
DictationAudioClip
Audio Clip of the last Dictation recording Session.
Declaration
public AudioClip DictationAudioClip { get; }
Property Value
Type | Description |
---|---|
AudioClip |
DictationResult
String result of the current dictation.
Declaration
public string DictationResult { get; }
Property Value
Type | Description |
---|---|
String |
Methods
Initialize(IMixedRealityInputSource, String, AudioClip)
Used to initialize/reset the event and populate the data.
Declaration
public void Initialize(IMixedRealityInputSource inputSource, string dictationResult, AudioClip dictationAudioClip = null)
Parameters
Type | Name | Description |
---|---|---|
IMixedRealityInputSource | inputSource | |
String | dictationResult | |
AudioClip | dictationAudioClip |