mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Better error message when speech dispatcher has no voices in Linux
This commit is contained in:
parent
58e91b4ba4
commit
c98610b51d
@ -67,6 +67,8 @@ class Client:
|
||||
self.create_ssip_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)':
|
||||
raise ValueError('Speech dispatcher on this system is not configured with any available voices. Install some voices first.')
|
||||
if not self.settings_applied:
|
||||
self.apply_settings()
|
||||
self.set_use_ssml(use_ssml)
|
||||
|
Loading…
x
Reference in New Issue
Block a user