Share via


SPTEXTSELECTIONINFO (SAPI 5.4)

Microsoft Speech API 5.4

SPTEXTSELECTIONINFO

SPTEXTSELECTIONINFO combines test selection information that the SR engine can use to improve the recognition accuracy (using ISpRecoGrammar::SetWordSequenceData() and ISpRecoGrammar::SetTextSelection()).

  
    typedef struct tagSPTEXTSELECTIONINFO
{
    ULONG       ulStartActiveOffset;
    ULONG       cchActiveChars;
    ULONG       ulStartSelection;
    ULONG       cchSelection;
} SPTEXTSELECTIONINFO;

Members

  • ulStartActiveOffset
    Count of characters from the start of the WordSequenceData buffer. The word containing the character pointed to is the first word of the active text selection buffer.
  • cchActiveChars
    Count of characters for the active range of the text selection buffer.
  • ulStartSelection
    Start of the selected text (e.g., the user is selecting part of the previously dictated text that he/she is going to edit or correct).
  • cchSelection
    Count of characters of the user selection.