We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesML Kitmlsdk.ttsMLTtsError

MLTtsError

com.huawei.hms.mlsdk.tts.MLTtsError

External error event.

Constant Summary

TypeNameDesc
intERR_AUDIO_PLAYER_FAILEDAudio playback error.
intERR_AUTHORIZE_FAILEDAuthentication failed.
intERR_ILLEGAL_PARAMETERInvalid parameter.
intERR_INSUFFICIENT_BALANCEInsufficient balance.
intERR_INTERNALInternal error.
intERR_NET_CONNECT_FAILEDNetwork connection error.
intERR_SPEECH_SYNTHESIS_FAILEDTTS failed.
intERR_UNKNOWNUnknown error.

Public Method Summary

Return typeMethod name
intgetErrorId()
StringgetErrorMsg()
ObjectgetExtension()

Constants

Constant
public static final int ERR_AUDIO_PLAYER_FAILED

Audio playback error.

Constant value: 11305

Constant
public static final int ERR_AUTHORIZE_FAILED

Authentication failed.

Constant value: 11306

Constant
public static final int ERR_ILLEGAL_PARAMETER

Invalid parameter.

Constant value: 11301

Constant
public static final int ERR_INSUFFICIENT_BALANCE

Insufficient balance.

Constant value: 11303

Constant
public static final int ERR_INTERNAL

Internal error.

Constant value: 11398

Constant
public static final int ERR_NET_CONNECT_FAILED

Network connection error.

Constant value: 11302

Constant
public static final int ERR_SPEECH_SYNTHESIS_FAILED

TTS failed.

Constant value: 11304

Constant
public static final int ERR_UNKNOWN

Unknown error.

Constant value: 11399

Public Methods

Method
public int getErrorId()
Obtains the error ID.

Return

Typedesc
intError ID.
Method
public String getErrorMsg()
Obtains error information.

Return

Typedesc
StringError information.
Method
public Object getExtension()

Obtains extension information.

Return

Typedesc
ObjectExtended parameter.
This page may contain third-party content. For details, click here.
Search in References
Enter a keyword.