Provides the last decode error on a specific voice channel. To be used in cases where LV_DECODE_BLOCK is not used; should be called after LV_SRE_WaitForEngineToIdle returns success.
- int LV_SRE_GetLastDecodeError(int hport, int VoiceChannel)
A handle to the speech port
The channel containing the decoded audio
The specified hport is not a valid one.
The specified VoiceChannel is not a valid one.
Indicates that the preceding decode operation succeeded.
Indicates that the preceding decode operation timed out.
Indicates that no ASR servers were available to perform the decode.
Indicates that the license acquired for the decode operation does not permit the use of the current version of the ASR server.
Indicates that you do not have the right license type for the decode. Either a Lite license was used when the vocabulary size of the active grammar set exceeded 500, or an SLM decode operation was attempted with a non-SLM license.
Indicates that more than one language was specified in the active grammar set.
Indicates that the language specified in the grammar is either invalid or is not available on the ASR server.
Indicates an error in using an active grammar for the decode operation (e.g.: there were no words in the compiled grammar).
An exception occurred while processing the request.
LV_SRE_GetLastDecodeError returns an integer that corresponds to an error code (you can get the textual description of the error with LV_SRE_ReturnErrorString).
Of the error codes listed above, LV_INVALID_HPORT and LV_INVALID_SOUND_CHANNEL are returned due to an error in the inputs to the function.