优化
This commit is contained in:
1 parent
ef5f90187b
commit
22efd441d0
1 file changed
+2
-5
@@ -66,11 +66,8 @@ 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()
|
||||||
|
|||||||
Reference in new issue
Block a user