Microsoft Speech SDK
SAPI 5.1
SPGRAMMARWORDTYPE
SPGRAMMARWORDTYPE lists the type of the word(s) to be added to a grammar. This type is either specified in the Speech Text Grammar Format as <GRAMMAR WORDTYPE="LEXICAL"> or as a parameter toISpGrammarBuilder::AddWordTransition(). SAPI currently allows only SPWT_LEXICAL.
typedef enum SPGRAMMARWORDTYPE
{
SPWT_DISPLAY,
SPWT_LEXICAL,
SPWT_PRONUNCIATION
} 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.