SpeechRecognitionResult.Semantics property
Gets a dictionary of the semantic properties of a recognized phrase in a Speech Recognition Grammar Specification (SRGS) grammar.
Syntax
public IReadOnlyDictionary<String, SemanticProperty> Semantics { get; }
Public ReadOnly Property Semantics As IReadOnlyDictionary(Of String, SemanticProperty)
public:
property IMapView<String, SemanticProperty>^ Semantics {
IMapView<String, SemanticProperty>^ get();
}
Property value
Type: IMapView<String, SemanticProperty> [C++] | System.Collections.Generic.IReadOnlyDictionary<String, SemanticProperty> [.NET]
A dictionary of the semantic properties of a recognized phrase in a Speech Recognition Grammar Specification (SRGS) grammar.
Remarks
The Semantics property returns a collection of name/value pairs, where the value is an object. When accessing the semantic value, ensure that your code casts it to the correct type (such as string), as defined in the corresponding SRGS grammar file.
For more information about working with speech recognition results and semantic results, see Working with speech recognition results for Windows Phone.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8 |
Namespace |
Windows.Phone.Speech.Recognition Windows::Phone::Speech::Recognition [C++] |
Metadata |
Windows.WinMD |
Capabilities |
ID_CAP_SPEECH_RECOGNITION [Windows Phone] ID_CAP_MICROPHONE [Windows Phone] ID_CAP_NETWORKING [Windows Phone] |
See also
SpeechRecognitionResult