Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Speech API 5.4
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.