From b4b8d91fb70db268dc624c232509094478567069 Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Tue, 23 Jan 2024 12:31:45 +0000 Subject: [PATCH] fix/load_persistent_cache() permanent cache wasnt being loaded on cache init --- ovos_plugin_manager/utils/tts_cache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ovos_plugin_manager/utils/tts_cache.py b/ovos_plugin_manager/utils/tts_cache.py index 0b2ef5bf..177feebe 100644 --- a/ovos_plugin_manager/utils/tts_cache.py +++ b/ovos_plugin_manager/utils/tts_cache.py @@ -241,6 +241,7 @@ def __init__(self, tts_config, tts_name, audio_file_type): # only persist if utterance is spoken >= N times self.persist_thresh = self.config.get("persist_thresh", 1) self._sentence_count = {} + self.load_persistent_cache() def __contains__(self, sha): """The cache contains a SHA if it knows of it and it exists on disk."""