Browse
 
Tools
Rss Categories

LV_TTS_GetLastSynthesisError

Reference Number: AA-01824 Views: 11910 0 Rating/ Voters

Returns a character string from the last (non-SSML) synthesis error, if any.

This functionality was added with LumenVox version 11.3.100 (August 2013)

Function

  • LV_TTS_RETURN_CODE LV_TTS_GetLastSynthesisError(HTTSCLIENT client_handle, char * error_buffer, int error_buffer_length);

Parameters

client_handle

Handle to the TTS client object.

error_buffer

Pointer to a character string buffer into which the synthesis error description will be copied.

error_buffer_length

Maximum length (in bytes) of error_buffer.

Return Values

LV_SUCCESS

No errors; The synthesis error description has been copied into error_buffer.

LV_INVALID_TTS_HANDLE

The specified TTS client handle parameter is not a valid one.

LV_FAILURE

Either no results are available or there was no synthesis error.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks


This routine is used to provide feedback about TTS synthesis errors, which does not include SSML syntax errors. Any SSML syntax errors can be obtained using the LV_TTS_GetLastSSMLError function.

To obtain the current LumenVox error code for the specified TTS client handle, use the LV_TTS_GetLastSynthesisErrorCode API function.