|
|
@ -63,7 +63,9 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun play() { |
|
|
|
override fun play() { |
|
|
|
if (contentList.isEmpty()) return |
|
|
|
if (contentList.isEmpty()) { |
|
|
|
|
|
|
|
ReadBook.readAloud() |
|
|
|
|
|
|
|
} else { |
|
|
|
ReadAloud.httpTTS?.let { |
|
|
|
ReadAloud.httpTTS?.let { |
|
|
|
val fileName = |
|
|
|
val fileName = |
|
|
|
md5SpeakFileName(it.url, AppConfig.ttsSpeechRate.toString(), contentList[nowSpeak]) |
|
|
|
md5SpeakFileName(it.url, AppConfig.ttsSpeechRate.toString(), contentList[nowSpeak]) |
|
|
@ -79,6 +81,7 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun playStop() { |
|
|
|
override fun playStop() { |
|
|
|
mediaPlayer.stop() |
|
|
|
mediaPlayer.stop() |
|
|
|