LVSpeechPort::GetLastDecodeError

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.

Function

int GetLastDecodeError(int voicechannel)

Parameters

voicechannel

The channel containing the decoded audio

Return Values

LV_INVALID_HPORT

The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).

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.

Remarks

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.

See Also

© 2012 LumenVox LLC. All rights reserved.