Share via


SPDISPLAYATTRIBUTES (SAPI 5.4)

Microsoft Speech API 5.4

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.

  
    typedef enum tagSPDISPLYATTRIBUTES
{
    SPAF_ONE_TRAILING_SPACE,
    SPAF_TWO_TRAILING_SPACES,
    SPAF_CONSUME_LEADING_SPACES,
    SPAF_ALL,
    SPAF_USER_SPECIFIED
} SPDISPLAYATTRIBUTES;

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.

  • SPAF_USER_SPECIFIED