mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
911e2b22e9
commit
eb75caca48
@ -126,7 +126,7 @@ class Client:
|
||||
self.onevent = onevent
|
||||
buf = v'[]'
|
||||
size = 0
|
||||
limit = 24000
|
||||
limit = 2048
|
||||
|
||||
def commit():
|
||||
nonlocal buf, size
|
||||
|
Loading…
x
Reference in New Issue
Block a user