mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Read aloud: Fix spurious error message on Linux about voices not being installed
This commit is contained in:
parent
19f007fa9d
commit
bd8b1c81ff
@ -68,7 +68,10 @@ class Client:
|
||||
if self.system_default_output_module is None:
|
||||
self.system_default_output_module = self.ssip_client.get_output_module()
|
||||
if self.system_default_output_module == '(null)':
|
||||
mods = self.ssip_client.list_output_modules()
|
||||
if not mods:
|
||||
raise ValueError(_('Speech dispatcher on this system is not configured with any available voices. Install some voices first.'))
|
||||
self.system_default_output_module = mods[0]
|
||||
if not self.settings_applied:
|
||||
self.apply_settings()
|
||||
self.set_use_ssml(use_ssml)
|
||||
|
Loading…
x
Reference in New Issue
Block a user