|
|
@ -147,10 +147,8 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
removeSpeakCacheFile(fileName) |
|
|
|
removeSpeakCacheFile(fileName) |
|
|
|
toastOnUi("tts接口网络错误\n${e.localizedMessage}") |
|
|
|
toastOnUi("tts接口网络错误\n${e.localizedMessage}") |
|
|
|
} catch (e: IOException) { |
|
|
|
} catch (e: IOException) { |
|
|
|
val file = getSpeakFileAsMd5(fileName) |
|
|
|
removeSpeakCacheFile(fileName) |
|
|
|
if (file.exists()) { |
|
|
|
createSpeakFileAsMd5IfNotExist(fileName) |
|
|
|
FileUtils.deleteFile(file.absolutePath) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
AppLog.put("tts文件解析错误") |
|
|
|
AppLog.put("tts文件解析错误") |
|
|
|
toastOnUi("tts文件解析错误\n${e.localizedMessage}") |
|
|
|
toastOnUi("tts文件解析错误\n${e.localizedMessage}") |
|
|
|
} catch (e: Exception) { |
|
|
|
} catch (e: Exception) { |
|
|
|