This commit is contained in:
Horis committed 2024-07-27 19:41:42 +08:00
1 parent 44a570589b
commit 776229bac2
1 file changed
+15 -10
@@ -191,16 +191,7 @@ class TTSReadAloudService : BaseReadAloudService(), TextToSpeech.OnInitListener
override fun onDone(s: String) { override fun onDone(s: String) {
LogUtils.d(TAG, "onDone utteranceId:$s") LogUtils.d(TAG, "onDone utteranceId:$s")
//跳过全标点段落 nextParagraph()
do {
readAloudNumber += contentList[nowSpeak].length + 1 - paragraphStartPos
paragraphStartPos = 0
nowSpeak++
if (nowSpeak >= contentList.size) {
nextChapter()
return
}
} while (contentList[nowSpeak].matches(AppPattern.notReadAloudRegex))
} }