Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
Message
Create engine failed.
Symptom
Engine creation failed.
Possible causes
The language is not supported.
The mode is not supported.
The needed resource does not exist or the initialization times out.
Frequent engine creation and destruction cause resource competition, resulting in a creation failure.
Solution
Call the listLanguages method to query the supported languages. Then try again.
Currently, only CreateEngineParams is supported. Try again after confirming the mode.
If the needed resource does not exist or the initialization times out, try again later.
Store the created engine instance. In scenarios where the engine parameters are the same, reuse the engine instance instead of destroying it immediately after use. Destroy the engine instance only when it is no longer needed.
Message
Start listening failed.
Symptom
Failed to start recognition.
Possible causes
Speech recognition has already been started and is started again.
Solution
Check whether speech recognition has been started. Do not start it repeatedly.
Message
Exceeded the maximum audio length supported.
Symptom
The audio length exceeds the maximum.
Possible causes
The audio length exceeds the maximum.
Solution
It is recommended that the audio not exceed 60,000 ms. After adjusting the length, try again.
Message
Finish recognition failed.
Symptom
Failed to end recognition.
Possible causes
No recognition task exists.
Solution
Call the startListening method to start the speech recognition task and try again.
Message
Cancel recognition failed.
Symptom
Failed to cancel recognition.
Possible causes
No recognition task exists.
Solution
Call the startListening method to start the speech recognition task and try again.
Message
The engine of SpeechRecognition is busy.
Symptom
The recognition service is busy.
Possible causes
The engine is performing a recognition task.
Solution
Call the isBusy method to query the service status and try again when the service is idle.
Message
The engine is not initialized.
Symptom
The engine has not been initialized.
Possible causes
The engine has not been initialized.
Solution
Call the speechRecognizer.createEngine method to initialize the engine and try again.
Message
The engine of SpeechRecognition is being destroyed.
Symptom
The engine has been destroyed.
Possible causes
The engine has been destroyed.
Solution
Call the speechRecognizer.createEngine method to initialize the engine and try again.
Message
Internal Service Error.
Symptom
Internal service error.
Possible causes
An internal service error occurred, preventing the engine function from being called.
The service process is terminated due to a system exception.
Solution
Call the API again and rectify the fault based on the error information.
If the error persists, submit a ticket online. Huawei will get back to you as soon as possible.
Message
Write audio failed because the start listening is failed.
Symptom
The engine has not started recognition.
Possible causes
The engine has not started recognition.
Solution
Call the startListening method to start the speech recognition task and try again.
Message
Error in recognition.
Symptom
An exception occurs during speech recognition.
Possible causes
An exception occurs during speech recognition.
Solution
Call the startListening method to try again.
Message
AudioCapturer create failed, please check the permission of MICROPHONE.
Symptom
Failed to create the AudioCapturer. Check the microphone permission.
Possible causes
The microphone permission is not obtained.
Solution
Check whether the microphone permission has been obtained. For details, see step 10 in Development Procedure.
Message
The length of text is out of range or empty.
Symptom
Invalid text length.
Possible causes
The text length is 0 or exceeds 10,000 characters.
Solution
Modify the text and try again.
Message
The language is not supported.
Symptom
The language is not supported.
Possible causes
An unsupported language is used.
Solution
Call the listVoices method to query the supported languages. Select a supported language and try again.
Message
The person is not supported.
Symptom
The timbre is not supported.
Possible causes
An unsupported timbre is used.
Solution
Call the listVoices method to query the supported timbres. Select a supported timbre and try again.
Message
Create engine failed.
Symptom
Engine creation failed.
Possible causes
The engine service is abnormal.
Failed to load engine resources.
Solution
Try again later.
Message
Failed to download voice.
Symptom
The API provided by the TTS capability for downloading a timbre does not work.
Possible causes
The network is unavailable, or an internal service error occurs.
Solution
Try again later.
Message
Parameter error. Possible causes:
Mandatory parameters are left unspecified.
Incorrect parameter types.
Parameter verification failed.
Symptom
The parameters passed to the download API of the TTS capability are invalid.
Possible causes
The parameters are not passed according to the requirements.
Solution
Ensure that the input parameter is correct and try again.
Message
Voice has already been downloaded.
Symptom
The TTS timbre has already been downloaded.
Possible causes
The timbre has already been downloaded.
Solution
Query timbres that have not been downloaded through the query API.