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() super.play()
kotlin.runCatching { kotlin.runCatching {
val tts = ReadAloud.httpTTS ?: throw NoStackTraceException("httpTts is null") val tts = ReadAloud.httpTTS ?: throw NoStackTraceException("httpTts is null")
val fileName = val fileName = md5SpeakFileName(
md5SpeakFileName( tts.url, AppConfig.ttsSpeechRate.toString(), contentList[nowSpeak]
tts.url, )
AppConfig.ttsSpeechRate.toString(),
contentList[nowSpeak]
)
if (nowSpeak == 0 && downloadTask?.isActive != true) { if (nowSpeak == 0 && downloadTask?.isActive != true) {
downloadAudio() downloadAudio()
} else { } else {

Loading…
Cancel
Save