目录

com.huawei.hms.mlsdk.tts.MLTtsError

对外错误事件。

Constant Summary

TypeNameDesc
intERR_AUDIO_PLAYER_FAILED音频播放错误。
intERR_AUTHORIZE_FAILED鉴权失败。
intERR_ILLEGAL_PARAMETER非法参数。
intERR_INSUFFICIENT_BALANCE余额不足。
intERR_INTERNAL内部错误。
intERR_NET_CONNECT_FAILED网络连接异常。
intERR_SPEECH_SYNTHESIS_FAILED语音合成失败。
intERR_UNKNOWN未知错误。

Public Method Summary

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

Constants

Constant
public static final int ERR_AUDIO_PLAYER_FAILED

音频播放错误。

Constant Value: 11305

Constant
public static final int ERR_AUTHORIZE_FAILED

鉴权失败。

Constant Value: 11306

Constant
public static final int ERR_ILLEGAL_PARAMETER

非法参数。

Constant Value: 11301

Constant
public static final int ERR_INSUFFICIENT_BALANCE

余额不足。

Constant Value: 11303

Constant
public static final int ERR_INTERNAL

内部错误。

Constant Value: 11398

Constant
public static final int ERR_NET_CONNECT_FAILED

网络连接异常。

Constant Value: 11302

Constant
public static final int ERR_SPEECH_SYNTHESIS_FAILED

语音合成失败。

Constant Value: 11304

Constant
public static final int ERR_UNKNOWN

未知错误。

Constant Value: 11399

Public Methods

Method
public int getErrorId()
获取错误代码。

Return

Typedesc
int错误ID。
Method
public String getErrorMsg()
获取错误信息。

Return

Typedesc
String错误信息。
Method
public Object getExtension()
获取扩展信息。

Return

Typedesc
Object预留扩展字段。