Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SpeechGrammar class

Applies to Windows Phone only

A runtime object that references a speech recognition grammar.

Syntax


public ref class SpeechGrammar sealed 

Attributes

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

Members

The SpeechGrammar class has these types of members:

Properties

The SpeechGrammar class has these properties.

PropertyAccess typeDescription

Enabled

Read/writeGets or sets whether the grammar can be used by the speech recognizer to perform recognition.

Probability

Read/writeGets or sets the weighted value of the grammar.

 

Remarks

A SpeechGrammar object is created automatically by the AddGrammarFromList, AddGrammarFromUri and AddGrammarFromPredefinedType methods. It is not possible to created a SpeechGrammar object manually by using a constructor.

For more information about how to use the SpeechGrammar class, see the code examples at Adding, loading, and preloading grammars for Windows Phone and Managing loaded grammars to optimize recognition for Windows Phone.

Requirements

Minimum supported client

None supported [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

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

Object

 

 

Community Additions

Show:
© 2014 Microsoft