mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Merge branch 'tts-graceful-degrade' of https://github.com/eli-schwartz/calibre
This commit is contained in:
commit
1808e6118d
@ -221,7 +221,11 @@ def available_engines() -> dict[str, EngineMetadata]:
|
|||||||
'for natural sounding voices. The neural network is run locally on your computer, it is fairly resource intensive to run.'
|
'for natural sounding voices. The neural network is run locally on your computer, it is fairly resource intensive to run.'
|
||||||
), TrackingCapability.Sentence, can_change_pitch=False, voices_have_quality_metadata=True, has_managed_voices=True)
|
), TrackingCapability.Sentence, can_change_pitch=False, voices_have_quality_metadata=True, has_managed_voices=True)
|
||||||
if islinux:
|
if islinux:
|
||||||
|
try:
|
||||||
from speechd.paths import SPD_SPAWN_CMD
|
from speechd.paths import SPD_SPAWN_CMD
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
cmd = os.getenv("SPEECHD_CMD", SPD_SPAWN_CMD)
|
cmd = os.getenv("SPEECHD_CMD", SPD_SPAWN_CMD)
|
||||||
if cmd and os.access(cmd, os.X_OK) and os.path.isfile(cmd):
|
if cmd and os.access(cmd, os.X_OK) and os.path.isfile(cmd):
|
||||||
ans['speechd'] = EngineMetadata('speechd', _('The Speech Dispatcher Engine'), _(
|
ans['speechd'] = EngineMetadata('speechd', _('The Speech Dispatcher Engine'), _(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user