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.
Function
- int LV_SRE_GetLastDecodeError(int hport, int VoiceChannel)
Parameters
hport
A handle to the speech port
VoiceChannel
The channel containing the decoded audio
Return Values
LV_INVALID_HPORT
The specified hport is not a valid one.
LV_INVALID_SOUND_CHANNEL
The specified VoiceChannel is not a valid one.
LV_SUCCESS
Indicates that the preceding decode operation succeeded.
LV_TIME_OUT
Indicates that the preceding decode operation timed out.
LV_NO_SERVER_AVAILABLE
Indicates that no ASR servers were available to perform the decode.
LV_LICENSES_EXPIRED
Indicates that the license acquired for the decode operation does not permit the use of the current version of the ASR server.
LV_ACTIVE_GRAMMAR_VOCAB_SIZE_EXCEEDS_LIMIT
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.
LV_ACTIVE_GRAMMAR_LANGUAGE_CONFLICT
Indicates that more than one language was specified in the active grammar set.
LV_ACTIVE_GRAMMAR_INVALID_LANGUAGE
Indicates that the language specified in the grammar is either invalid or is not available on the ASR server.
LV_GRAMMAR_LOADING_ERROR
Indicates an error in using an active grammar for the decode operation (e.g.: there were no words in the compiled grammar).
LV_EXCEPTION
An exception occurred while processing the request.
Remarks
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.
See Also