@ -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() {