SpeechRecognitionResult Class
Definition
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.
The result of a speech recognition session.
public ref class SpeechRecognitionResult sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class SpeechRecognitionResult final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class SpeechRecognitionResult
Public NotInheritable Class SpeechRecognitionResult
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
Call the SpeechRecognizer.RecognizeAsync or the SpeechRecognizer.RecognizeWithUIAsync method to obtain an instance of this class.
Properties
Confidence |
Gets a value that indicates the confidence of the speech recognizer in the recognition result. |
Constraint |
Gets the constraint used for the recognition result. |
PhraseDuration |
Gets the amount of time required for the utterance. |
PhraseStartTime |
Gets the start time of the utterance. |
RawConfidence |
Gets a value that indicates the relative confidence of the SpeechRecognitionResult when compared with a collection of alternatives returned with the recognition result. |
RulePath |
Gets the hierarchy of rule elements that were triggered to return the recognized phrase. |
SemanticInterpretation |
Gets an interpretation object containing the semantic properties of a recognized phrase in a Speech Recognition Grammar Specification (SRGS) grammar. |
Status |
Gets the result state (SpeechRecognitionResultStatus) of a speech recognition session. |
Text |
Gets the recognized phrase of the speech recognition session. |
Methods
GetAlternates(UInt32) |
Gets a collection of recognition result alternatives, ordered by RawConfidence from most likely to least likely. The first item in the collection is the recognition result indicated by the parent object. |