This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
Message
The parameter check failed.
Description
The input parameters are incorrect.
Possible causes
The type of an input parameter or the parameter value is incorrect, for example, the input language is not Chinese.
Solution
Ensure that the input parameters are correct and try again.
Message
Create engine failed.
Description
Engine creation failed.
Possible causes
Solution
Message
Start listening failed.
Description
Failed to start recognition.
Possible causes
Speech recognition has already been started and is started again.
Solution
Try again later.
Message
Exceeded the maximum audio length supported.
Description
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. Adjust the length and try again.
Message
Finish recognition failed.
Description
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.
Description
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.
Description
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.
Description
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
Write audio failed because the start listening is failed.
Description
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
AudioCapturer create failed, please check the permission of MICROPHONE.
Description
Failed to create the AudioCapturer. The microphone permission needs to be checked.
Possible causes
No microphone permission is obtained.
Solution
Check whether the microphone permission can be obtained.
Message
The length of text is out of range or empty.
Description
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.
Description
The language is not supported.
Possible causes
The language is not supported. Currently, only Chinese is supported.
Solution
Call the listVoices method to query the supported languages. Use the supported language and try again.
Message
Create engine failed.
Description
Engine creation failed.
Possible causes
1. The engine service is abnormal.
2. Failed to load engine resources.
Solution
Try again later.
Message
The service of TextToSpeech is busy.
Description
The text-to-speech service is busy.
Possible causes
The engine is performing a synthesis or playback task.
Solution
Try again later.
Message
The Text-to-Speech engine is not initialized.
Description
The engine has not been initialized.
Possible causes
The engine has not been initialized.
Solution
Call the createEngine method to initialize the engine and then perform synthesis.