Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Commit e9eff11

Browse files
authored
fix cache persist (#7)
should only happen to the nancy and ljspeech voices hosted in cpu, not kusal
1 parent 38afc96 commit e9eff11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ovos_tts_plugin_mimic2/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def __init__(self, lang="en-us", config=None):
3333
Mimic2TTSValidator(self), 'wav')
3434
self.voice = self.voice.lower()
3535
self._visemes = False
36-
self.cache.persist = True # save synths to avoid repeat queries
3736
if self.config.get("url"): # self hosted
3837
self.url = self.config["url"]
3938
# TODO disable cache to avoid filename conflicts with other voices
@@ -45,8 +44,10 @@ def __init__(self, lang="en-us", config=None):
4544
self._visemes = True
4645
elif self.voice == "nancy":
4746
self.url = "https://nancy.2022.us/synthesize"
47+
self.cache.persist = True # always save synths to persistent cache
4848
elif self.voice == "ljspeech":
4949
self.url = "https://ljspeech.2022.us/synthesize"
50+
self.cache.persist = True # always save synths to persistent cache
5051
else:
5152
self.voice = "kusal"
5253
self.url = "https://mimic-api.mycroft.ai/synthesize"

0 commit comments

Comments
 (0)