Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

Microsoft Speech Platform

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."

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef struct tagSPPHRASEREPLACEMENT</strong> { <strong>BYTE</strong> <em>bDisplayAttributes;</em> <strong>LPCWSTR</strong> *<em>pszReplacementText;</em> <strong>ULONG</strong> <em>ulFirstElement;</em> <strong>ULONG</strong> <em>ulCountOfElements;</em> <strong>} SPPHRASEREPLACEMENT;</strong> </pre>

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.