3. Error Handling
Continuous Speech Processing (CSP) library functions return a value to indicate success or failure of the function.
- To indicate success, the library returns a value of zero or a non-negative number.
- To indicate failure, the library returns a value of -1.
Error codes that may be returned by a function are described with each function description in the Continuous Speech Processing API Library Reference.
If a library function fails, call the standard attribute function ATDV_LASTERR( ) to return the error code and ATDV_ERRMSGP( ) to return a string describing the error. These functions are described in the Standard Runtime Library Programmer's Guide (in the Voice Software Reference).
If ATDV_LASTERR( ) returns the error EDX_SYSTEM, a system error has occurred. In Linux, check the global variable errno contained in errno.h. In Windows, use dx_fileerrno( ) to obtain the system error value. For a list of possible system error values, see the dx_fileerrno( ) function description in the Voice Software Reference.
Click here to contact Dialogic Customer Engineering
Copyright 2001, Intel Corporation