Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
SPDISPLAYATTRIBUTES
SPDISPLAYATTRIBUTES lists the display text of phrase elements. Recognition results contain the recognized text in a format that can be displayed on the screen. The SPDISPLAYATTRIBUTES type is used in the bDisplayAttributes member of SPPHRASEELEMENT to indicate additional display information that the application should honor when displaying a word, such as what to do with leading or trailing spaces.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef enum tagSPDISPLAYATTRIBUTES { SPAF_ONE_TRAILING_SPACE,</strong> <strong>SPAF_TWO_TRAILING_SPACES,</strong> <strong>SPAF_CONSUME_LEADING_SPACES,</strong> <strong>SPAF_ALL,</strong> <strong>} SPDISPLAYATTRIBUTES;</strong> </pre>
Elements
- SPAF_ONE_TRAILING_SPACE
Inserts one trailing space, used for most words. - SPAF_TWO_TRAILING_SPACES
Insert two trailing spaces, often used after a sentence final period. - SPAF_CONSUME_LEADING_SPACES
Consume leading space, often used for periods. If this is absent, the word should have a leading space by default. - SPAF_ALL
A combination of all of the above flags.