SPCOMMITFLAGS (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform


SPCOMMITFLAGS

New in SAPI 5.3

Defines values for the types of recognizer corrections.

SPCOMMITFLAGS is used to indicate the nature of the correction when ISpRecoResult2::CommitText is called to provide new text for recognizer learning.

typedef enum SPCOMMITFLAGS
{
    SPCF_NONE,
    SPCF_ADD_TO_USER_LEXICON,
    SPCF_DEFINITE_CORRECTION
} SPCOMMITFLAGS;

Elements

SPCF_NONE
The correction is just a new word that the user typed.
SPCF_ADD_TO_USER_LEXICON
The correction is a definite correction that should also be added to the user lexicon.
SPCF_DEFINITE_CORRECTION
The correction is a correction of a recognition result returned by the recognizer.