Read all, or some portion of the synthesized audio buffer that was obtained from a
LVTTSClient::Synthesize call. Each successive invocation of this function reads the buffer at an offset that is after the last sample read in the previous call.
- LV_TTS_RETURN_CODE GetSynthesizedAudioBuffer( void * buffer, int buffer_size_in_bytes, int * bytes_returned )
Location of memory buffer where the synthesized audio samples need to be copied into.
Amount of memory allocated for buffer, number of bytes of synthesized audio samples to be read into buffer.
The number of bytes of synthesized audio samples actually copied into buffer. This may be less than buffer_size_in_bytes if there is not sufficient data available.
No errors; bytes_returned bytes of synthesized audio samples have been copied into buffer.
The TTS client handle is invalid (either Initialize has not been called or Destroy has already been called); or buffer points to an invalid memory location; or results are not yet available.
An exception occurred while processing the request.