Note

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

Microsoft Speech Platform

SPRECOGNIZERSTATUS

SPRECOGNIZERSTATUS is used to report static information about the recognizer, such as supported languages, and dynamic information about the position in the stream to which the recognizer has recognized.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef struct SPRECOGNIZERSTATUS</strong> <strong>{</strong><a runat="server" href="jj127866(v=msdn.10).md"><strong>SPAUDIOSTATUS</strong></a> <em>AudioStatus</em>; <strong>ULONGLONG</strong> <em>ullRecognitionStreamPos</em>; <strong>ULONG</strong> <em>ulStreamNumber</em>; <strong>ULONG</strong> <em>ulNumActive</em>; <strong>CLSID</strong> <em>clsidEngine</em>; <strong>ULONG</strong> <em>cLangIDs</em>; <strong>LANGID</strong> <em>aLangID[SP_MAX_LANGIDS]</em>; <strong>ULONGLONG</strong> <em>ullRecognitionStreamTime</em>; <strong>} SPRECOGNIZERSTATUS</strong>;</pre>

Members

  • AudioStatus
    The SPAUDIOSTATUS structure containing the current audio device information.
  • ullRecognitionStreamPos
    The current stream position the engine has recognized to. Stream positions are measured in bytes. This value can be used to check the engine's progress using the audio data.
  • ulStreamNumber
    This value is incremented every time SAPI starts or stops recognition on an engine (see SPEI_START_SR_STREAM and SPEI_END_SR_STREAM). Each time this happens the ullRecognitionStreamPos gets reset to zero. Events fired from the engine have equivalent stream number and position information also.
  • ulNumActive
    The current engine's number of active rules.
  • clsidEngine
    The unique identifier associated with the current engine.
  • cLangIDs
    The number of languages that the current engine supports.
  • aLangID
    Array containing the languages that the current engine supports.
  • ullRecognitionStreamTime
    Returns the current position of the recognizer in the stream in 100 nanosecond units.