mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 02:32:33 -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:
@@ -126,7 +126,7 @@ class Client:
|
||||
self.onevent = onevent
|
||||
buf = v'[]'
|
||||
size = 0
|
||||
limit = 24000
|
||||
limit = 2048
|
||||
|
||||
def commit():
|
||||
nonlocal buf, size
|
||||
|
||||
Reference in New Issue
Block a user