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