From 6f3e1e0d55508c66fa0d7be5903dcce1066b1065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Wed, 19 Jul 2017 17:21:24 +0200 Subject: [PATCH] Fix filename for cache lookup --- mycroft/tts/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mycroft/tts/__init__.py b/mycroft/tts/__init__.py index a610c26df0..ef69cd2203 100644 --- a/mycroft/tts/__init__.py +++ b/mycroft/tts/__init__.py @@ -194,7 +194,7 @@ class TTS(object): """ key = str(hashlib.md5(sentence.encode('utf-8', 'ignore')).hexdigest()) wav_file = os.path.join(mycroft.util.get_cache_directory("tts"), - key + self.type) + key + '.' + self.type) if os.path.exists(wav_file): LOGGER.debug("TTS cache hit")