mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow switching back to SAPI speech client via a "plugin tweak"
This commit is contained in:
parent
3eed23619e
commit
3121517b51
@ -4,6 +4,10 @@
|
||||
from calibre.constants import iswindows, ismacos
|
||||
|
||||
if iswindows:
|
||||
from calibre.utils.config_base import tweaks
|
||||
if tweaks.get('prefer_winsapi'):
|
||||
from .windows_sapi import Client
|
||||
else:
|
||||
from .windows import Client
|
||||
elif ismacos:
|
||||
from .macos import Client
|
||||
|
Loading…
x
Reference in New Issue
Block a user