Share via


Note

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

Microsoft Speech Platform

ISpNotifyTranslator::Wait

ISpNotifyTranslator::Wait is a blocking call that returns when a Speech Platform notification has fired and the associated Win32 event object has been signaled or a timeout has passed. This method is applicable only with objects using Win32 events.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT Wait(</strong> <strong> DWORD</strong> <em>dwMilliseconds</em> <strong>);</strong> </pre>

Parameters

  • dwMilliseconds
    [in] Number of milliseconds for the timeout on a blocking call. If set to INFINITE, there is no timeout.

Return Values

Value Description
S_OK Function completed successfully.
S_FALSE The event was not set and the call was timed out.
SPERR_UNINITIALIZED InitWin32Event did not return successfully or has not been called.