|
|
@ -69,10 +69,7 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener |
|
|
|
|
|
|
|
|
|
|
|
@Synchronized |
|
|
|
@Synchronized |
|
|
|
override fun play() { |
|
|
|
override fun play() { |
|
|
|
if (contentList.isEmpty() || !ttsInitFinish) { |
|
|
|
if (contentList.isNotEmpty() && ttsInitFinish && requestFocus()) { |
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (requestFocus()) { |
|
|
|
|
|
|
|
MediaHelp.playSilentSound(this) |
|
|
|
MediaHelp.playSilentSound(this) |
|
|
|
super.play() |
|
|
|
super.play() |
|
|
|
textToSpeech?.stop() |
|
|
|
textToSpeech?.stop() |
|
|
|