Share via


Note

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

Microsoft Speech Platform

ISpNotifyTranslator::InitSpNotifyCallback

ISpNotifyTranslator::InitSpNotifyCallback sets up this instance to call the virtual method ISpNotifyCallback::NotifyCallback for notifications.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT InitSpNotifyCallback(</strong> <strong><a runat="server" href="jj127652(v=msdn.10).md">ISpNotifyCallback</a></strong> <em>*pSpCallback</em>, <strong> WPARAM</strong> <em>wParam</em>, <strong> LPARAM</strong> <em>lParam</em> <strong>);</strong> </pre>

Parameters

Return Values

Value Description
S_OK Function completed successfully.
SPERR_ALREADY_INITIALIZED Translator object is already initialized.
E_INVALIDARG pSpNotifyCallback is invalid or bad.
FAILED(hr) Appropriate error message.

Remarks

The application will be called back on the same thread that calls this method. The callback will be called as a result of window message processing, so the thread must have a message pump.  For more details, see the documentation for ISpNotifyCallback.