Share via


Note

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

Microsoft Speech Platform

SPTEXTSELECTIONINFO

SPTEXTSELECTIONINFO combines text selection information that the speech recognition (SR) engine can use to improve recognition accuracy (using ISpRecoGrammar::SetWordSequenceData() and ISpRecoGrammar::SetTextSelection()). Applications built on the Speech Platform will typically not use this struct.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef struct tagSPTEXTSELECTIONINFO { ULONG </strong> <em>ulStartActiveOffset</em>; <strong>ULONG</strong> <em>cchActiveChars</em>; <strong>ULONG </strong> <em>ulStartSelection</em>; <strong>ULONG</strong> <em> cchSelection</em>; } <strong>SPTEXTSELECTIONINFO</strong>; </pre>

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 (for example, 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.