Compartir a través de


SPGRAMMARWORDTYPE (Windows CE 5.0)

Send Feedback

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.

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

OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.

See Also

SAPI Enumerations

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.