This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes.
Error Message
Permission denied.
Error Description
Permission verification failed.
Possible Causes
The ohos.permission.KEEP_BACKGROUND_RUNNING permission is not configured.
Solution
Configure the related permission and try again.
If the error persists, submit a ticket online.
Error Message
Parameter error.
Error Description
Parameter check failed.
Possible Causes
Invalid parameters, including a missing mandatory parameter, an incorrect parameter type, or a parameter value beyond the specified range.
Solution
Verify that mandatory parameters are passed, the parameter types are correct, and the parameter values are within the specified ranges.
If the error persists, submit a ticket online.
Error Message
Initialize failed.
Error Description
The TextReader failed to be initialized.
Possible Causes
Failed to initialize the TTS engine or player.
Some device models are not supported.
Solution
For PCs, you need to call setWindowStage before initialization when launching the reading details page. For other types of devices, skip this step.
Check whether the initialization is complete. Repeated initialization will cause this error.
If the error persists, submit a ticket online.
Error Message
The TextReader is not initialized.
Error Description
Not initialized.
Possible Causes
The TextReader is not initialized when called for playback.
Solution
Call the init method to initialize the TextReader.
If the error persists, submit a ticket online.
Error Message
Text-to-speech engine error.
Error Description
TTS audio synthesis error.
Possible Causes
Abnormal audio synthesis on the TTS engine side.
Solution
You are advised to submit a ticket online.
Error Message
AudioRenderer play error.
Error Description
Player error.
Possible Causes
The AudioRenderer player encountered an error.
Solution
Verify that the format and content of the readInfoList parameter are correct.
If the error persists, submit a ticket online.
Error Message
Audio decode error.
Error Description
Decoding error.
Possible Causes
Audio decoding failed on the TTS engine side.
Solution
You are advised to submit a ticket online.
Error Message
AVSession error.
Error Description
Media controller synchronization error.
Possible Causes
An error occurs when the AVSession media controller synchronizes the cover image or playback status.
Solution
You are advised to submit a ticket online.
Error Message
Other error.
Error Description
Other error.
Possible Causes
There was an exception caused by other factors.
Solution
You are advised to submit a ticket online.
Error Message
playPrev failed.
Error Description
Failed to play the previous track.
Possible Causes
Abnormal data.
Solution
Verify that the readInfo parameter of the previous track is correct.
If the error persists, submit a ticket online.
Error Message
playNext failed.
Error Description
Failed to play the next track.
Possible Causes
Abnormal data.
Solution
Verify that the readInfo parameter of the next track is correct.
If the error persists, submit a ticket online.
Error Message
Release error.
Error Description
Failed to release TextReader resources.
Possible Causes
Resources failed to be released.
Solution
Set a delay and call the release API again.
If the error persists, submit a ticket online.
Error Message
AI caption service is busy.
Error Description
The AI caption service is busy.
Possible Causes
The AI caption service is busy.
Solution
You are advised to submit a ticket online.
Error Message
AI caption controller initialized failed.
Error Description
The AI caption controller failed to be initialized.
Possible Causes
The AI caption controller failed to be initialized.
Solution
Check whether other apps are using the caption tool.
You are advised to submit a ticket online.
Error Message
Audio recognition failed.
Error Description
Audio recognition failed.
Possible Causes
An error occurred during the AI-based audio recognition.
Solution
Check whether the input audio is less than 640 bytes or greater than 1280 bytes.
Check whether the AI engine is successfully initialized.
If the error persists, submit a ticket online.
Error Message
AI caption controller init param failed.
Error Description
An AI caption initialization parameter is incorrect.
Possible Causes
A parameter such as the source language, target language, or font size in AICaptionOptions is out of range.
Solution
If the error persists, submit a ticket online.