Fix read aloud not working on mobile browsers

Chrome now has a ridiculously small limit on utterance sizes. Capping it
at 2K seems to work, though of course the whole thing is pointless since
speech gets interrupted when the phone screen turns off due to
inactivity.
This commit is contained in:
Kovid Goyal
2021-08-05 11:07:02 +05:30
parent 911e2b22e9
commit eb75caca48
+1 -1
View File
@@ -126,7 +126,7 @@ class Client:
self.onevent = onevent
buf = v'[]'
size = 0
limit = 24000
limit = 2048
def commit():
nonlocal buf, size