|
|
@ -72,7 +72,7 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener |
|
|
|
execute { |
|
|
|
execute { |
|
|
|
MediaHelp.playSilentSound(this@TTSReadAloudService) |
|
|
|
MediaHelp.playSilentSound(this@TTSReadAloudService) |
|
|
|
textToSpeech?.let { |
|
|
|
textToSpeech?.let { |
|
|
|
it.stop() |
|
|
|
it.speak("", TextToSpeech.QUEUE_FLUSH, null, null) |
|
|
|
for (i in nowSpeak until contentList.size) { |
|
|
|
for (i in nowSpeak until contentList.size) { |
|
|
|
it.speak( |
|
|
|
it.speak( |
|
|
|
contentList[i], |
|
|
|
contentList[i], |
|
|
|