Browse
 
Tools
Rss Categories

LV_TTS_GetSynthesizedAudioBufferLength

Reference Number: AA-00997 Views: 2168 0 Rating/ Voters

Returns the size, in bytes, of the synthesized audio buffer that was produced from a previous LV_TTS_Synthesize call.

Function

  • LV_TTS_RETURN_CODE LV_TTS_GetSynthesizedAudioBufferLength(HTTSCLIENT client_handle, int * buffer_length);

Parameters

client_handle

Handle to the active TTS client object.

buffer_lengrh

Memory location of integer variable where the size of the synthesized audio buffer will be copied into. This will be a positive integer if successful; or 0 if no results are available or the specified client handle is invalid.

Return Values

LV_SUCCESS

No errors; buffer_length will contain the synthesized audio buffer length.

LV_FAILURE

The specified TTS client handle is not a valid one.

LV_EXCEPTION

An exception occurred while processing the request.