Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
SPVOICESTATUS
SPVOICESTATUS contains voice status information. This structure is returned by ISpVoice::GetStatus.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>typedef struct SPVOICESTATUS</strong> <strong>{</strong> <strong>ULONG</strong> <em>ulCurrentStream</em>; <strong>ULONG</strong> <em>ulLastStreamQueued</em>; <strong>HRESULT</strong> <em>hrLastResult</em>; <strong>DWORD</strong> <em>dwRunningState</em>; <strong>ULONG</strong> <em>ulInputWordPos</em>; <strong>ULONG</strong> <em>ulInputWordLen</em>; <strong>ULONG</strong> <em>ulInputSentPos</em>; <strong>ULONG</strong> <em>ulInputSentLen</em>; <strong>LONG</strong> <em>lBookmarkId</em>; <strong>SPPHONEID</strong> <em>PhonemeId</em>; <strong>SPVISEMES</strong> <em>VisemeId</em>; <strong>DWORD</strong> <em>dwReserved1</em>; <strong>DWORD</strong> <em>dwReserved2</em>; <strong>} SPVOICESTATUS;</strong> </pre>
Members
- ulCurrentStream
The number of the current stream being synthesized or receiving output (see ISpVoice::Speakfor more information on stream numbers). - ulLastStreamQueued
The number of the last stream queued. - hrLastResult
Result of the last Speak or Speakstream call. - dwRunningState
Indicates the status of the voice. That is, whether it is currently speaking, is done with all pending speak requests, or is currently waiting to speak. The possible flag values are contained in the SPRUNSTATE enumeration. A value of zero indicates that the voice is currently waiting to speak. - ulInputWordPos
Character position within the input text of the word currently being processed. - ulInputWordLen
Length of the word currently being processed. - ulInputSentPos
Character position within the input text of the sentence currently being processed. - ulInputSentLen
Length of the sentence currently being processed. - lBookmarkId
Current bookmark string (in base 10) converted to a long integer. If the string of the current bookmark does not begin with an integer, lBookmarkId will be zero. For example, if the bookmark name is "123Bookmark", the lBookmarkId is "123"; and if the bookmark name is "hello", the lBookmarkId is zero. - PhonemeId
The ID of the phone currently being processed. - VisemeId
The ID of the viseme currently being processed - see SAPI Viseme set. - dwReserved1
Reserved for future expansion. - dwReserved2
Reserved for future expansion.