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

Commit

Permalink
fix cache persist (#7)
Browse files Browse the repository at this point in the history
should only happen to the nancy and ljspeech voices hosted in cpu, not kusal
  • Loading branch information
JarbasAl authored Mar 13, 2022
1 parent 38afc96 commit e9eff11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ovos_tts_plugin_mimic2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self, lang="en-us", config=None):
Mimic2TTSValidator(self), 'wav')
self.voice = self.voice.lower()
self._visemes = False
self.cache.persist = True # save synths to avoid repeat queries
if self.config.get("url"): # self hosted
self.url = self.config["url"]
# TODO disable cache to avoid filename conflicts with other voices
Expand All @@ -45,8 +44,10 @@ def __init__(self, lang="en-us", config=None):
self._visemes = True
elif self.voice == "nancy":
self.url = "https://nancy.2022.us/synthesize"
self.cache.persist = True # always save synths to persistent cache
elif self.voice == "ljspeech":
self.url = "https://ljspeech.2022.us/synthesize"
self.cache.persist = True # always save synths to persistent cache
else:
self.voice = "kusal"
self.url = "https://mimic-api.mycroft.ai/synthesize"
Expand Down

0 comments on commit e9eff11

Please sign in to comment.