diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index cb8badd48..31b9747ac 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -113,12 +113,10 @@ class HttpReadAloudService : BaseReadAloudService(), } } else if (hasSpeakCache(fileName)) { //缓存文件还在,可能还没下载完 return@forEachIndexed - } else { //没有下载并且没有缓存文件 - if (speakText.isEmpty()) { - ensureActive() - createSilentSound(fileName) - return@forEachIndexed - } + } else if (speakText.isEmpty()) { + createSilentSound(fileName) + return@forEachIndexed + } else { try { createSpeakCache(fileName) val analyzeUrl = AnalyzeUrl(