SPGRAMMARWORDTYPE
Other versions of this page are also available for the following:
8/28/2008
This enumeration defines the types of the words that can be added to a grammar. The word type can be specified in the Speech Text Grammar format, for example, <GRAMMAR WORDTYPE="LEXICAL">. Alternatively it can be specified as a parameter to ISpGrammarBuilder::AddWordTransition. SAPI currently only allows only the word type SPWT_LEXICAL.
Syntax
typedef enum SPGRAMMARWORDTYPE{
SPWT_DISPLAY,
SPWT_LEXICAL,
SPWT_PRONUNCIATION
} SPGRAMMARWORDTYPE;
Elements
- SPWT_DISPLAY
Each word is in display form, from which it might need to be converted to lexical form. For example, the word "23" (display form) needs to be converted to "twenty three" (lexical form). This word type is currently not implemented in SAPI.
- SPWT_LEXICAL
Each word is in lexical form and can be used to access the lexicon.
- SPWT_PRONUNCIATION
Each word is specified solely by its pronunciation. This word type is currently not implemented.
Requirements
Header | sapi.h, sapi.idl |
Windows Embedded CE | Windows CE .NET 4.1 and later |