Note
Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.
Microsoft Speech Platform
ISpRecoContext::GetMaxAlternates
ISpRecoContext::GetMaxAlternates retrieves the maximum number of alternates that the speech recognition engine will return for context-free grammars (CFGs) associated with this context.
<pre IsFakePre="true" xmlns="http://www.w3.org/1999/xhtml"> <strong>HRESULT GetMaxAlternates(</strong> <strong> ULONG</strong> *<em>pcMaxAlternates</em> <strong>);</strong> </pre>
Parameters
- pcMaxAlternates
[out] The maximum number of alternates. The default value is zero, unless the application specifies it using ISpRecoContext::SetMaxAlternates.
Return Values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | pcMaxAlternates is invalid or bad. |
FAILED(hr) | Appropriate error message. |
Remarks
The value for pcMaxAlternates is the maximum number of recognition alternates that will be returned to the application.