pull/1391/head
gedoor 3 years ago
parent 4fc3dbb710
commit 355705dc6b
  1. 10
      app/src/main/java/io/legado/app/service/HttpReadAloudService.kt

@ -113,12 +113,10 @@ class HttpReadAloudService : BaseReadAloudService(),
} }
} else if (hasSpeakCache(fileName)) { //缓存文件还在,可能还没下载完 } else if (hasSpeakCache(fileName)) { //缓存文件还在,可能还没下载完
return@forEachIndexed return@forEachIndexed
} else { //没有下载并且没有缓存文件 } else if (speakText.isEmpty()) {
if (speakText.isEmpty()) { createSilentSound(fileName)
ensureActive() return@forEachIndexed
createSilentSound(fileName) } else {
return@forEachIndexed
}
try { try {
createSpeakCache(fileName) createSpeakCache(fileName)
val analyzeUrl = AnalyzeUrl( val analyzeUrl = AnalyzeUrl(

Loading…
Cancel
Save