Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates the predefined grammar type.
Syntax
public enum SpeechPredefinedGrammar
Public Enum SpeechPredefinedGrammar
public enum class SpeechPredefinedGrammar
Members
The SpeechPredefinedGrammar enumeration has these members.
| Member | Value | Description |
|---|---|---|
| Dictation | 1 | Indicates a dictation grammar. |
| WebSearch | 2 | Indicates a web search grammar. |
Remarks
This enumeration is used as a parameter of the AddGrammarFromPredefinedType method, a method that enables speech recognition against predefined grammars.
For a code example of how to use the SpeechPredefinedGrammar enumeration, see the Working with web search grammars section in Adding, loading, and preloading grammars 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
[Version(0x06020000)]