Browse
 
Tools
Rss Categories

LVTTSClient::GetSynthesizedAudioBufferLength

Reference Number: AA-01029 Views: 2042 0 Rating/ Voters

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

Function

  • LV_TTS_RETURN_CODE GetSynthesizedAudioBufferLength(int * buffer_length)

Parameters

buffer_length

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 invalid (either Initialize has not been called or Destroyhas already been called).

LV_EXCEPTION

An exception occurred while processing the request.