Fix filename for cache lookup

pull/928/head
Åke Forslund 2017-07-19 17:21:24 +02:00 committed by Steve Penrod
parent bb5539fc17
commit 6f3e1e0d55
1 changed files with 1 additions and 1 deletions

View File

@ -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")