diff --git a/src/calibre/gui2/tts/piper.py b/src/calibre/gui2/tts/piper.py index 1dcbd43c53..09291e8075 100644 --- a/src/calibre/gui2/tts/piper.py +++ b/src/calibre/gui2/tts/piper.py @@ -457,7 +457,7 @@ class Piper(TTSBackend): return model_path, config_path def is_voice_downloaded(self, v: Voice) -> bool: - if not v.name: + if not v or not v.name: v = self._default_voice for path in self._paths_for_voice(v): if not os.path.exists(path):