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