Browse
 
Tools
Rss Categories

LVSpeechPort::AddEventEx

Reference Number: AA-00746 Views: 8152 0 Rating/ Voters

Events are added to call log files (special logs generated by the SpeechPort which contain audio for each decode 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. Call logging needs to be enabled prior to calling this function. Call logging can be enabled via SetPropertyEx or in the client_property.conf file.

Function

  • int AddEventEx(const char* eventName, const char* eventData)

Parameters

eventName

Any non-NULL, non-zero length string identifying the event.

eventData

Some information about the event being added.

Return Values

LV_SUCCESS

No errors; adding the event succeeded.

LV_INVALID_EVENT

Either event logging is not enabled, eventName is NULL or of zero string length or you are trying to add EVENT_END_DECODE_SEQ event type without previously adding an EVENT_START_DECODE_SEQ type event.

LV_INVALID_HPORT

The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).

LV_EXCEPTION

An exception occurred while processing the request.

See Also