Windows Dev Center

SpeechRecognitionResult class

The result of a speech recognition session.

Syntax


var speechRecognitionResult = recognizeAsync();
var speechRecognitionResult = recognizeWithUIAsync();

Members

The SpeechRecognitionResult class has these types of members:

Methods

The SpeechRecognitionResult class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetAlternates Gets a collection of recognition result alternatives, ordered by RawConfidence from most likely to least likely.

 

Properties

The SpeechRecognitionResult class has these properties.

PropertyAccess typeDescription

Confidence

Read-onlyGets a value that indicates the confidence of the speech recognizer in the recognition result.

Constraint

Read-onlyGets the constraint that was triggered to return the recognized phrase

PhraseDuration

Read-onlyGets the amount of time required for the utterance.

PhraseStartTime

Read-onlyGets the start time of the utterance.

RawConfidence

Read-onlyGets a value that indicates the relative confidence of the SpeechRecognitionResult when compared with a collection of alternatives returned with the recognition result.

RulePath

Read-onlyGets the hierarchy of rule elements that were triggered to return the recognized phrase.

SemanticInterpretation

Read-onlyGets an interpretation object containing the semantic properties of a recognized phrase in a Speech Recognition Grammar Specification (SRGS) grammar

Status

Read-onlyGets the result state (SpeechRecognitionResultStatus) of a speech recognition session.

Text

Read-onlyGets the recognized phrase of the speech recognition session.

 

Remarks

Call the SpeechRecognizer.RecognizeAsync or the SpeechRecognizer.RecognizeWithUIAsync method to obtain an instance of this class.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.SpeechRecognition
Windows::Media::SpeechRecognition [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Media.SpeechRecognition
Windows::Media::SpeechRecognition [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06030000)]

See also

Object
Windows.Media.SpeechRecognition
ISpeechRecognitionConstraint
Speech interactions
Designers
Speech design guidelines
Samples
Speech recognition and speech synthesis sample

 

 

Show:
© 2015 Microsoft