[6.8.4][Opt]科大讯飞TTS添加更详细的错误信息

This commit is contained in:
chenfufeng
2024-12-26 10:52:01 +08:00
parent 64b343c5ba
commit c472347d37

View File

@@ -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 = ""