ErrorCode::Success | 0 | The operation succeeded. A returned result value can be used. |
ErrorCode::NullPointer | 1 | A required native pointer is null. Use valid handles and buffers; do not use a moved-from handle. |
ErrorCode::ParameterOutOfRange | 2 | A parameter is outside its accepted range or is NaN. Check the parameter bounds before setting it. |
ErrorCode::NotInitialized | 3 | The processor, VAD or collector has not been initialized. Call its initialize method successfully before supplying audio. |
ErrorCode::AudioConfigUnsupported | 4 | The sample rate or block configuration is unsupported. Use a positive block size and settings supported by the model. |
ErrorCode::AudioConfigMismatch | 5 | The audio length violates the configured fixed block size or variable maximum. Correct the buffer length. |
ErrorCode::ProcessingNotAllowed | 6 | The session disallows processing. Check credentials, network access and session state, and apply your application’s audio fallback. |
ErrorCode::InternalError | 7 | An internal operation failed. If valid input reproduces the failure, contact support with a minimal reproduction. |
ErrorCode::LicenseFormatInvalid | 50 | The credential cannot be parsed. Check the exact key or token and its encoding without logging it. |
ErrorCode::LicenseVersionUnsupported | 51 | The SDK does not support the credential version. Check SDK and account compatibility. |
ErrorCode::LicenseExpired | 52 | The credential has expired. Obtain a valid credential through the approved account flow. |
ErrorCode::TokenUpdateUnsupported | 53 | Token replacement requires both the original and replacement credentials to be JWTs. Start a new session when changing credential types. |
ErrorCode::ModelInvalid | 100 | The model data is invalid or corrupted. Obtain a complete compatible model file. |
ErrorCode::ModelVersionUnsupported | 101 | The model file format is incompatible with this SDK. Obtain a model in the matching format. |
ErrorCode::FilePathInvalid | 102 | The model path is not valid UTF-8. Supply a UTF-8 path string. |
ErrorCode::FileSystemError | 103 | The model file cannot be opened or mapped. Check its path, permissions and integrity. |
ErrorCode::ModelDataUnaligned | 104 | The model buffer is not aligned to 64 bytes. Use correctly aligned storage and retain it for every dependent object. |
ErrorCode::ModelTypeUnsupported | 105 | The model type does not match the operation. Use the corresponding enhancement, VAD or analysis API. |