Skip to content

Commit

Permalink
string changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Sep 7, 2024
1 parent 5657351 commit f9e4690
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/calibre/gui2/tts/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,36 +195,36 @@ def qt_engine_metadata(name: str, human_name: str, desc: str, allows_choosing_au

for x in QTextToSpeech.availableEngines():
if x == 'winrt':
ans[x] = qt_engine_metadata(x, _('Modern Windows Speech Engine'), _(
ans[x] = qt_engine_metadata(x, _('Modern Windows Engine'), _(
'The "winrt" engine can track the currently spoken word on screen. Additional voices for it are available from Microsoft.'
), True)
elif x == 'darwin':
ans[x] = qt_engine_metadata(x, _('macOS Speech Engine'), _(
ans[x] = qt_engine_metadata(x, _('macOS Engine'), _(
'The "darwin" engine can track the currently spoken word on screen. Additional voices for it are available from Apple.'
))
elif x == 'sapi':
ans[x] = qt_engine_metadata(x, _('Legacy Windows Speech Engine'), _(
ans[x] = qt_engine_metadata(x, _('Legacy Windows Engine'), _(
'The "sapi" engine can track the currently spoken word on screen. It is no longer supported by Microsoft.'
))
elif x == 'macos':
# this is slated for removal in Qt 6.8 so skip it
continue
elif x == 'flite':
ans[x] = qt_engine_metadata(x, _('The "flite" Speech engine'), _(
ans[x] = qt_engine_metadata(x, _('The "flite" Engine'), _(
'The "flite" engine can track the currently spoken word on screen.'
), True)
elif x == 'speechd':
continue
if piper_cmdline():
ans['piper'] = EngineMetadata('piper', _('The Piper Neural Speech Engine'), _(
ans['piper'] = EngineMetadata('piper', _('The Piper Neural Engine'), _(
'The "piper" engine can track the currently spoken sentence on screen. It uses a neural network '
'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)
if islinux:
from speechd.paths import 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):
ans['speechd'] = EngineMetadata('speechd', _('The Speech Dispatcher Speech Engine'), _(
ans['speechd'] = EngineMetadata('speechd', _('The Speech Dispatcher Engine'), _(
'The "speechd" engine can usually track the currently spoken word on screen, however, it depends on the'
' underlying output module. The default espeak output module does support it.'
), TrackingCapability.WordByWord, allows_choosing_audio_device=False, has_multiple_output_modules=True)
Expand Down

0 comments on commit f9e4690

Please sign in to comment.