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 VoiceChannel)
The channel containing the decoded audio
The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).
The input VoiceChannel is not a valid one.
Indicates that the preceeding decode operation succeeded.
Indicates that the preceeding 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 (eg: there were no words in the compiled grammar).
An exception occurred while processing the request.
GetLastDecodeError returns an integer that corresponds to an error code (you can get the textual description of the error with ReturnErrorString).
Of the error codes listed above, LV_INVALID_SOUND_CHANNEL is returned due to an error in the input to the method.