diff --git a/app/src/main/java/io/legado/app/service/TTSReadAloudService.kt b/app/src/main/java/io/legado/app/service/TTSReadAloudService.kt index fcb398f4d..ed154f3e1 100644 --- a/app/src/main/java/io/legado/app/service/TTSReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/TTSReadAloudService.kt @@ -168,6 +168,11 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener } } + override fun onError(utteranceId: String?, errorCode: Int) { + AppLog.put("tts朗读出错 errorCode:$errorCode") + onDone("") + } + @Deprecated("Deprecated in Java") override fun onError(s: String) { //nothing