pull/32/head
kunfei 5 years ago
parent f6ad6b0242
commit f19dc4c3c3
  1. 4
      app/src/main/java/io/legado/app/service/ReadAloudService.kt

@ -234,9 +234,9 @@ class ReadAloudService : BaseService(), TextToSpeech.OnInitListener,
ReadAloudNotification.upNotification(this)
for (i in nowSpeak until contentList.size) {
if (i == 0) {
textToSpeech?.speak(contentList[i], TextToSpeech.QUEUE_FLUSH, null, "content")
textToSpeech?.speak(contentList[i], TextToSpeech.QUEUE_FLUSH, null, "content$i")
} else {
textToSpeech?.speak(contentList[i], TextToSpeech.QUEUE_ADD, null, "content")
textToSpeech?.speak(contentList[i], TextToSpeech.QUEUE_ADD, null, "content$i")
}
}
}

Loading…
Cancel
Save