Last reviewed: 3/23/2024 10:01:25 AM

Error Handling

SpeechKit uses a common set of return codes on error conditions to minimize the error processing required by the application. The following table provides a summary.

Error Constant Value Description
E_INVALIDARG 0x80070057 One or more arguments are invalid. Verify your parameter values used in invoking the method.
E_FAIL 0x80004005 Unspecified error. Exception handling catches as a non-specific failure.
E_NOINTERFACE 0x80004002 No such interface supported. Verify that the session with the recognizer or synthesizer is active before invoking the method.
E_OUTOFMEMORY 0x8007000E Ran out of memory. There is not enough memory to complete the operation.
E_NOTIMPL 0x80004001 Not implemented. Contact Chant support for assistance.
CLASS_E_NOTLICENSED 0x80040112 Class is not licensed for use. Verify that your License and Serials property values are set before invoking any other methods.

Speech APIs (i.e., recognizer) may generate error codes. To monitor these error codes register an APIError event callback.

Consult the Speech API documentation for problem determination or contact Chant support for assistance.