This commit is contained in:
kunfei 2023-07-07 19:22:26 +08:00
parent fbc3370b4d
commit fc9ca8049e

View File

@ -52,8 +52,10 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
@Synchronized
fun clearTTS() {
textToSpeech?.stop()
textToSpeech?.shutdown()
textToSpeech?.runCatching {
stop()
shutdown()
}
textToSpeech = null
ttsInitFinish = false
}