pull/72/head^2
kunfei 5 years ago
parent 890488aa0c
commit 92dd37ac4e
  1. 5
      app/src/main/java/io/legado/app/ui/rss/read/ReadRssViewModel.kt

@ -110,7 +110,10 @@ class ReadRssViewModel(application: Application) : BaseViewModel(application),
}
fun readAloud(text: String) {
textToSpeech.speak(text, TextToSpeech.QUEUE_FLUSH, null, "rss")
textToSpeech.stop()
text.split(" ").forEach {
textToSpeech.speak(it, TextToSpeech.QUEUE_ADD, null, "rss")
}
}
override fun onCleared() {

Loading…
Cancel
Save