Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpNotifySource::SetNotifyWin32Event
ISpNotifySource::SetNotifyWin32Event sets up a Win32 event object to be used by this instance for notifications. The event handle can be retrieved through GetNotifyEventHandle.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT SetNotifyWin32Event ( void );</strong> </pre>
Parameters
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
FAILED (hr) | Appropriate error message. |
Remarks
Once an event object has been initialized for this instance, use either WaitForNotifyEvent or use GetNotfyEventHandle and wait using one of the various Win32 synchronization functions. Note that Win32 event objects and Speech Platform events are different objects.