[8.4.0]
[科大讯飞出现 开启会话报错:18310 错误后主动调用一次end]
This commit is contained in:
@@ -342,6 +342,12 @@ class IFlyTekOfflineTts : IMogoTTS {
|
|||||||
if (!aiHandle!!.isSuccess) {
|
if (!aiHandle!!.isSuccess) {
|
||||||
// handleErrorEvent("开启会话报错:${aiHandle!!.code}")
|
// handleErrorEvent("开启会话报错:${aiHandle!!.code}")
|
||||||
handleErrorEvent("${StringUtils.getString(R.string.module_tts_start_ai_handle_error)}${aiHandle!!.code}")
|
handleErrorEvent("${StringUtils.getString(R.string.module_tts_start_ai_handle_error)}${aiHandle!!.code}")
|
||||||
|
if(aiHandle!!.code==18310){
|
||||||
|
aiHandle?.let {
|
||||||
|
val ret = AiHelper.getInst().end(it)
|
||||||
|
d(TAG, "AIKit_End:$ret")
|
||||||
|
}
|
||||||
|
}
|
||||||
aiHandle = null
|
aiHandle = null
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user