SPPHRASEREPLACEMENT (SAPI 5.4)

Microsoft Speech API 5.4

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;
    LPCWSTR         *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.