Browse
 
Tools
Rss Categories

LV_TTS_GetLastSSMLError

Reference Number: AA-00989 Views: 10976 0 Rating/ Voters

Returns a character string from the last SSML syntax error, if any.

Function

  • LV_TTS_RETURN_CODE LV_TTS_GetLastSSMLError(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 SSML syntax error description will be copied.

error_buffer_length

Maximum length (in bytes) of error_buffer.

Return Values

LV_SUCCESS

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

LV_INVALID_TTS_HANDLE

The input TTS client handle is not a valid one.

LV_FAILURE

Either no results are available or there was no SSML syntax error.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

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