From 6add892deae1e5bdbaf2269dc16e8b5d525e4ec8 Mon Sep 17 00:00:00 2001 From: Horis <821938089@qq.com> Date: Tue, 22 Nov 2022 12:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/TTSReadAloudService.kt | 5 +++++ 1 file changed, 5 insertions(+) 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