This commit is contained in:
Kovid Goyal 2021-08-04 22:53:20 +05:30
parent d12f41a4a9
commit 211c182462
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -156,9 +156,7 @@ class Client:
commit() commit()
buf.push(markup) buf.push(markup)
size += markup.length size += markup.length
text = buf.join('') commit()
if text.length:
self.create_utterance(text)
if self.queue.length: if self.queue.length:
window.speechSynthesis.speak(self.queue[0]) window.speechSynthesis.speak(self.queue[0])