SpeechGrammarWordType (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

SpeechGrammarWordType Enum

The SpeechGrammarWordType enumeration lists the types of words in a grammar.

Definition

Enum SpeechGrammarWordType
    SGDisplay = 0
    SGLexical = 1
    SGPronounciation = 2
    SGLexicalNoSpecialChars = 3
End Enum

Elements

SGDisplay
Each word to be added is in display form. That is, it possibly will have to be converted into lexical form(s). For example, the word "23" (display form) would have to converted into "twenty three" (lexical form). This is currently not implemented.
SGLexical
Each word to be added is in lexical form and can be used to access the lexicon. This type is specified in the speech text grammar format as <GRAMMAR WORDTYPE="LEXICAL">.
SGPronounciation
Each word is specified solely by its pronunciation. This is currently not implemented.
SGLexicalNoSpecialChars
Switches off the handling of special characters in the grammar. For example "*" normally means dictation and "?" means wildcard, but this flag means that "*" means asterisk, and "?" means ellipsis.