ISpSREngineSite::GetContextMaxAlternates (SAPI 5.3)

Speech API 5.3
Microsoft Speech API 5.3

ISpSREngineSite::GetContextMaxAlternates

ISpSREngineSite::GetContextMaxAlternates passes back the maximum number of alternates that should be generated for the specified recognition context.

HRESULT GetContextMaxAlternates(
   SPRECOCONTEXTHANDLE   hContext,
   ULONG                *pulNumAlts
);

Parameters

hContext
[in] Handle to the context.
pulNumAlts
[out] The maximum number of alternates to generate.

Return values

ValueDescription
S_OKFunction completed successfully.
E_POINTERpulNumAlts is invalid or bad.
FAILED (hr)Appropriate error message.

Remarks

For SAPI command and control grammars, it is usually easier to use the ISpSREngineSite::GetMaxAlternates method.

This method currently applies to command and control and proprietary grammars, but not to dictation grammars.


Show: