mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
907f018c44
commit
a003b0303d
@ -457,7 +457,7 @@ class Piper(TTSBackend):
|
|||||||
return model_path, config_path
|
return model_path, config_path
|
||||||
|
|
||||||
def is_voice_downloaded(self, v: Voice) -> bool:
|
def is_voice_downloaded(self, v: Voice) -> bool:
|
||||||
if not v.name:
|
if not v or not v.name:
|
||||||
v = self._default_voice
|
v = self._default_voice
|
||||||
for path in self._paths_for_voice(v):
|
for path in self._paths_for_voice(v):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user