This commit is contained in:
kunfei
2022-04-23 20:58:28 +08:00
parent 94e8c3e618
commit f8b105303c

View File

@@ -66,12 +66,9 @@ class HttpReadAloudService : BaseReadAloudService(),
super.play()
kotlin.runCatching {
val tts = ReadAloud.httpTTS ?: throw NoStackTraceException("httpTts is null")
val fileName =
md5SpeakFileName(
tts.url,
AppConfig.ttsSpeechRate.toString(),
contentList[nowSpeak]
)
val fileName = md5SpeakFileName(
tts.url, AppConfig.ttsSpeechRate.toString(), contentList[nowSpeak]
)
if (nowSpeak == 0 && downloadTask?.isActive != true) {
downloadAudio()
} else {