SpeechGrammar class
A runtime object that references a speech recognition grammar.
Syntax
public sealed class SpeechGrammar
Public NotInheritable Class SpeechGrammar
public ref class SpeechGrammar sealed
Members
The SpeechGrammar class has these types of members:
- Properties
Properties
The SpeechGrammar class has these properties.
Property | Access type | Description |
---|---|---|
Enabled |
Read/write |
Gets or sets whether the grammar can be used by the speech recognizer to perform recognition. |
Probability |
Read/write |
Gets 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 |
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] |
Attributes
[MarshalingBehavior(Agile)]
[Version(0x06020000)]