Browse
 
Tools
Rss Categories

LVSpeechPort::GetInterpretationScore

Reference Number: AA-00776 Views: 6523 0 Rating/ Voters
 

Provides the user with the confidence score for a given interpretation.

Function

  • int GetInterpretationScore(int VoiceChannel, int index)

Parameters

VoiceChannel

The channel containing the decoded audio.

index

The index number of the interpretation you wish to get. As the numbering starts at 0, this will be a value between 0 and one less than the value of GetNumberOfInterpretations.

Return Values

Non-negative number

No errors. The interpretation score has been returned.

LV_NO_ANSWERS_AVAILABLE

Indicates that the language specified in the grammar is either invalid or is not available on the ASR server.

LV_INVALID_HPORT

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

LV_NO_ANSWERS_AVAILABLE

Answers are not yet available.

LV_EXCEPTION

An exception occurred while processing the request.

 

Remarks

The interpretation score is the confidence score for a given interpretation. It will be a number between 0 and 1,000. Using GetInterpretationScore provides the same information as LVInterpretation::Score without the need to parse the semantic object.

See Also