- Installation
- Administration
- Programmer's Guide
- Grammars
- MRCP Server
- FAQs
Provides the last decode error on a specific voice channel. To be used in case LV_DECODE_BLOCK is not used; should be called after WaitForEngineToIdle returns success.
int GetLastDecodeError(int hport, int voicechannel)
hport
A handle to the speech port
voicechannel
The channel containing the decoded audio
LV_INVALID_HPORT
The input hport is not a valid one.
LV_INVALID_SOUND_CHANNEL
The input voicechannel is not a valid one.
LV_SUCCESS
Indicates that the preceeding decode operation succeeded.
LV_TIME_OUT
Indicates that the preceeding 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 (eg: there were no words in the compiled grammar).
LV_EXCEPTION
An exception occured while processing the request.
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.