Compartir a través de


ISpRecoContext::GetContextState (SAPI 5.3)

Microsoft Speech API 5.3

ISpRecoContext::GetContextState

ISpRecoContext::GetContextState retrieves the state of the recognition context.

  
    HRESULT GetContextState(SPCONTEXTSTATE   *peContextState
);

Parameters

  • peContextState
    [out] Address of the SPCONTEXTSTATE enumeration that receives the context state information.

Return values

Value
S_OK
E_POINTER
FAILED(hr)

Remarks

The default recognition context state for an ISpRecoContext object is SPCS_ENABLED.

Applications can use ISpRecoContext::SetContextState to set the context state.