Edit

Share via


SpeechEventData Class

Definition

Describes an input event that involves keyword recognition.

public ref class SpeechEventData : Microsoft::MixedReality::Toolkit::Input::BaseInputEventData
public class SpeechEventData : Microsoft.MixedReality.Toolkit.Input.BaseInputEventData
type SpeechEventData = class
    inherit BaseInputEventData
Public Class SpeechEventData
Inherits BaseInputEventData
Inheritance
UnityEngine.EventSystems.BaseEventData
SpeechEventData

Constructors

SpeechEventData(EventSystem)

Constructor.

Properties

Command

The text that was recognized.

Confidence

A measure of correct recognition certainty.

EventTime

The UTC time at which the event occurred.

(Inherited from BaseInputEventData)
InputSource

The source the input event originates from.

(Inherited from BaseInputEventData)
MixedRealityInputAction

The input action for this event.

(Inherited from BaseInputEventData)
PhraseDuration

The time it took for the phrase to be uttered.

PhraseStartTime

The moment in UTC time when uttering of the phrase began.

SourceId

The id of the source the event is from, for instance the hand id.

(Inherited from BaseInputEventData)

Methods

BaseInitialize(IMixedRealityInputSource, MixedRealityInputAction)

Used to initialize/reset the event and populate the data.

(Inherited from BaseInputEventData)
Initialize(IMixedRealityInputSource, RecognitionConfidenceLevel, TimeSpan, DateTime, SpeechCommands)

Populates the event with data.

Applies to