Share via


Note

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

Microsoft Speech Platform

ISpRecoContext::GetStatus

ISpRecoContext::GetStatus retrieves current state information associated with a recognition context. This is typically used to check the audio signal status.

<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetStatus(</strong><a runat="server" href="jj127878(v=msdn.10).md"><strong>SPRECOCONTEXTSTATUS</strong></a> *<em>pStatus</em> <strong>);</strong> </pre>

Parameters

  • pStatus
    [out] Address of the SPRECOCONTEXTSTATUS structure that receives the context state information.

Return Values

Value Description
S_OK Function completed successfully.
E_POINTER pStatus is invalid or bad.
FAILED (hr) Appropriate error message.

Remarks

An application can periodically query the recognition context status to check the audio signal quality (see also SPINTERFERENCE) and respond appropriately.