Browse
 
Tools
Rss Categories

LVSpeechPort::GetNumberOfNBestAlternatives

Reference Number: AA-00783 Views: 1584 0 Rating/ Voters

Returns the number of n-best alternatives found by the engine.

Function

  • int GetNumberOfNBestAlternatives(int VoiceChannel)

Parameters

VoiceChannel

The channel containing the decoded audio.

Return Values

Non-negative number

The actual number of n-best alternatives available. It will always be less than or equal to the value set for PROP_EX_MAX_NBEST_RETURNED.

LV_INVALID_HPORT

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

LV_FAILURE

The operation failed because the port was shutting down.

LV_INVALID_SOUND_CHANNEL

The input VoiceChannel is not valid.

LV_TIME_OUT

Answers are not yet available.

LV_EXCEPTION

An exception occurred while processing the request.

See Also