| 限定符和类型 | 字段和说明 |
|---|---|
static int |
TIP_ERROR_ALREADY_EXIST
已存在
|
static int |
TIP_ERROR_IVP_EXTRA_RGN_SOPPORT
rgn超过最大支持次数9
|
static int |
TIP_ERROR_IVP_GENERAL
内核异常
|
static int |
TIP_ERROR_IVP_MODEL_NOT_FOUND_IN_HBASE
声纹模型数据在hbase中找不到
|
static int |
TIP_ERROR_IVP_MUCH_NOISE
太多噪音
|
static int |
TIP_ERROR_IVP_NO_ENOUGH_AUDIO
音频长达不到自由说的要求
|
static int |
TIP_ERROR_IVP_TEXT_NOT_MATCH
音频内容与给定文本不一致
|
static int |
TIP_ERROR_IVP_TOO_LOW
声音太小
|
static int |
TIP_ERROR_IVP_TRUNCATED
音频波形幅度太大,超出系统范围,发生截幅
|
static int |
TIP_ERROR_IVP_UTTER_TOO_SHORT
音频太短
|
static int |
TIP_ERROR_IVP_ZERO_AUDIO
没检测到音频
|
static int |
TIP_ERROR_NOT_FOUND
找不到
|
| 构造器和说明 |
|---|
SpeechError(java.lang.Exception e) |
SpeechError(int errorCode)
初始化SpeechError对象
映射errorCode到errorDescription上.
|
SpeechError(int errorCode,
java.lang.String engineType) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getErrorCode()
获取错误码
获取错误对应用的具体错误码,[10000, 20000)的错误码为底层共享库和
服务器返回的错误码,[20000, +∞)为 jar 层返回的错误。
|
java.lang.String |
getErrorDescription()
获取错误描述
不包含错误码的描述信息。
|
java.lang.String |
getHtmlDescription(boolean containCode)
获取html错误描述
获取html格式的错误描述。
|
java.lang.String |
getPlainDescription(boolean containCode)
获取错误描述
包含错误码的描述信息。
|
java.lang.String |
toString()
转为字符串
把当前的信息转为字符串类,与
getPlainDescription(boolean)
参数为true时的效果一致。 |
public static final int TIP_ERROR_IVP_GENERAL
public static final int TIP_ERROR_IVP_EXTRA_RGN_SOPPORT
public static final int TIP_ERROR_IVP_TRUNCATED
public static final int TIP_ERROR_IVP_MUCH_NOISE
public static final int TIP_ERROR_IVP_TOO_LOW
public static final int TIP_ERROR_IVP_ZERO_AUDIO
public static final int TIP_ERROR_IVP_UTTER_TOO_SHORT
public static final int TIP_ERROR_IVP_TEXT_NOT_MATCH
public static final int TIP_ERROR_IVP_NO_ENOUGH_AUDIO
public static final int TIP_ERROR_IVP_MODEL_NOT_FOUND_IN_HBASE
public static final int TIP_ERROR_NOT_FOUND
public static final int TIP_ERROR_ALREADY_EXIST
public SpeechError(java.lang.Exception e)
public SpeechError(int errorCode,
java.lang.String engineType)
public SpeechError(int errorCode)
errorCode - 错误码public java.lang.String toString()
把当前的信息转为字符串类,与getPlainDescription(boolean)
参数为true时的效果一致。
toString 在类中 java.lang.ThrowablegetErrorCode(),
getPlainDescription(boolean)public int getErrorCode()
获取错误对应用的具体错误码,[10000, 20000)的错误码为底层共享库和
服务器返回的错误码,[20000, +∞)为 jar 层返回的错误。具体错误码值,请
参考ErrorCode。
#getErrorDesc(),
ErrorCodepublic java.lang.String getErrorDescription()
不包含错误码的描述信息。描述信息有助于开发者和用户处理引起错误的 原因。
getErrorCode(),
getPlainDescription(boolean)public java.lang.String getHtmlDescription(boolean containCode)
获取html格式的错误描述。
containCode - 是否包含错误码getPlainDescription(boolean),
getErrorCode()public java.lang.String getPlainDescription(boolean containCode)
包含错误码的描述信息。描述信息有助于开发者和用户处理引起错误的 原因。
getErrorCode(),
getErrorDescription()