Browse
 
Tools
Rss Categories

LVSpeechPort::GetDecodeAcousticModel

Reference Number: AA-00764 Views: 6724 0 Rating/ Voters

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

Function

  • int GetDecodeAcousticModel(int VoiceChannel, char* ModelNameBuffer, int BufferSize)

Parameters

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 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 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