[6.8.4][Opt]科大讯飞TTS添加更详细的错误信息
This commit is contained in:
@@ -306,9 +306,9 @@ class IFlyTekTts : IMogoTTS, InitListener {
|
||||
curTtsLevel = -1
|
||||
if (curTtsEntity != null) {
|
||||
speakVoiceMap.remove(curTtsEntity.toString())
|
||||
?.onSpeakError(curTtsEntity.toString(), error.message)
|
||||
?.onSpeakError(curTtsEntity.toString(), "errorCode is:${error.errorCode},errorDes is:${error.toString()}")
|
||||
} else {
|
||||
speakVoiceMap.remove(curTtsContent)?.onSpeakError(curTtsContent, error.message)
|
||||
speakVoiceMap.remove(curTtsContent)?.onSpeakError(curTtsContent, "errorCode is:${error.errorCode},errorDes is:${error.toString()}")
|
||||
}
|
||||
curTtsEntity = null
|
||||
curTtsContent = ""
|
||||
|
||||
Reference in New Issue
Block a user