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

@ -111,7 +111,7 @@ class ReadRssViewModel(application: Application) : BaseViewModel(application),
fun readAloud(text: String) { fun readAloud(text: String) {
textToSpeech.stop() textToSpeech.stop()
text.split(" ").forEach { text.split("\n", " ", "  ").forEach {
textToSpeech.speak(it, TextToSpeech.QUEUE_ADD, null, "rss") textToSpeech.speak(it, TextToSpeech.QUEUE_ADD, null, "rss")
} }
} }

Loading…
Cancel
Save