Returns the number of n-best alternatives found by the engine.
Function
- int LV_SRE_GetNumberOfNBestAlternatives(HPORT hport, int voicechannel)
Parameters
hport
The port's handle.
voicechannel
The channel containing the decoded audio.
Return Values
Non-negative number
The actual number of n-best alternatives available. It will always be less than or equal to the value set for PROP_EX_MAX_NBEST_RETURNED.
LV_INVALID_HPORT
The input hport is not a valid one.
LV_FAILURE
The operation failed because the port was shutting down.
LV_INVALID_SOUND_CHANNEL
The input voicechannel is not valid.
LV_TIME_OUT
Answers are not yet available.
LV_EXCEPTION
An exception occurred while processing the request.
Remarks
This function can be used to disambiguate results. If an interpretation's confidence score is low, the program might prompt the user to clarify between a number of alternatives. See
LV_SRE_SwitchToNBestAlternative for a full example in C.
See Also