SPPHRASEREPLACEMENT

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

SPPHRASEREPLACEMENT

SPPHRASEREPLACEMENT replaces the display text of one or more of the spoken words. This is used by speech recognition engines to perform Inverse Text Normalization (ITN). For example the spoken words "twenty" and "three" are replaced by the replacement text "23."

typedef struct tagSPPHRASEREPLACEMENT
{
    BYTE             bDisplayAttributes;
    const   WCHAR   *pszReplacementText;
    ULONG            ulFirstElement;
    ULONG            ulCountOfElements;
} SPPHRASEREPLACEMENT;

Members

bDisplayAttributes
One or more SPDISPLAYATTRIBUTES for the replacement text.
pszReplacementText
Text for the replacement.
ulFirstElement
Offset of the first spoken element to be replaced.
ulCountOfElements
Number of spoken elements to replace.