Better error message when speech dispatcher has no voices in Linux

This commit is contained in:
Kovid Goyal 2022-04-19 15:43:24 +05:30
parent 58e91b4ba4
commit c98610b51d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)