Microsoft Speech Platform
SPGRAMMARWORDTYPE
SPGRAMMARWORDTYPE is used during grammar building, when adding a word transition to a grammar. It indicates the type of the word being added to the grammar (for example, is it in display form and will need conversion to lexical form; is it in the same form as it exists in the lexicon; is it in pronunciation form?).
typedef enum SPGRAMMARWORDTYPE
{
SPWT_DISPLAY,
SPWT_LEXICAL,
SPWT_PRONUNCIATION,
SPWT_LEXICAL_NO_SPECIAL_CHARS
} SPGRAMMARWORDTYPE;
Elements
- SPWT_DISPLAY
- 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 in SAPI.
- SPWT_LEXICAL
- Each word to be added is in lexical form and can be used to access the lexicon.
- SPWT_PRONUNCIATION
- Each word is specified solely by its pronunciation. This is currently not implemented.
- SPWT_LEXICAL_NO_SPECIAL_CHARS
- 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.