pull/1817/head
kunfei 3 years ago
parent 94e8c3e618
commit f8b105303c
  1. 9
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -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 {

Loading…
Cancel
Save