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

@ -66,11 +66,8 @@ 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()

Loading…
Cancel
Save