SpeechRecognitionResult.Semantics property

Applies to Windows Phone only

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; }

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

End of phone support

Windows Phone 8.1 [Windows Phone Silverlight 8.1 apps only]

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft