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
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -126,7 +126,7 @@ class Client:
self.onevent = onevent self.onevent = onevent
buf = v'[]' buf = v'[]'
size = 0 size = 0
limit = 24000 limit = 2048
def commit(): def commit():
nonlocal buf, size nonlocal buf, size