Browse
 
Tools
Rss Categories

LV_TTS_AddEvent

Reference Number: AA-00982 Views: 10382 0 Rating/ Voters
 

Events are added to call log files (special logs generated by the client which contain information for each synthesis and a host of other information). The call log files are generated in the responses folder located in the installation directory, under the Lang directory. Any number of events may be added. You can add your own custom events using this method if needed - these can be used within the Speech Tuner for filtering or searching purposes.

Call logging needs to be enabled prior to calling this function. Call logging can be enabled via LV_TTS_SetPropertyEx or by editing the setting in the client_property.conf file.

Note that this is an optional advanced function and would not be used in most cases. The only time this would be used is whenever there is a specific need to add custom logging entries for some reason.

Function

  • LV_TTS_RETURN_CODE LV_TTS_AddEvent(HTTSCLIENT client_handle, const char * event_name);
 

Parameters

client_handle

Handle to the TTS client object.

event_name

Any non-NULL, non-zero length string.

Return Values

LV_SUCCESS

No errors; adding the event succeeded.

LV_INVALID_TTS_HANDLE

The input TTS client handle is not a valid one.

LV_INVALID_API_PARAMETER

The input event_name is not valid.

LV_EXCEPTION

An exception occurred while processing the request.