ISpSREngineSite::GetContextMaxAlternates (SAPI 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
Value |
S_OK |
E_POINTER |
FAILED (hr) |
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.