Browse
 
Tools
Rss Categories

LV_SRE_GetDecodeAcousticModel

Reference Number: AA-00682 Views: 1494 0 Rating/ Voters

Provides the name of the acoustic model that was used by the ASR engine during the decode operation.

Function

  • int LV_SRE_GetDecodeAcousticModel(HPORT hport, int VoiceChannel, char* ModelNameBuffer, int BufferSize)

Parameters

hport

The port's handle.

VoiceChannel

The channel containing the decoded audio.

ModelNameBuffer

A character buffer into which the queried acoustic model name will be written.

BufferSize

The size (in bytes) of ModelNameBuffer.

Return Values

LV_SUCCESS or 1

The model name was successfully copied into ModelNameBuffer.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_INVALID_SOUND_CHANNEL

The input VoiceChannel is not valid.

LV_NO_ANSWERS_AVAILABLE

Answers are not yet available.

LV_INVALID_BUFFER

The input ModelNameBuffer is NULL.

LV_INVALID_BUFFER_SIZE

If the model name is longer than BufferSize.

LV_EXCEPTION

An exception occurred while processing the request.

See Also