From c98610b51dc2699a42251c0da964e496d34631ee Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Apr 2022 15:43:24 +0530 Subject: [PATCH] Better error message when speech dispatcher has no voices in Linux --- src/calibre/gui2/tts/linux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/tts/linux.py b/src/calibre/gui2/tts/linux.py index 65a82bffaf..1945635c16 100644 --- a/src/calibre/gui2/tts/linux.py +++ b/src/calibre/gui2/tts/linux.py @@ -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)