Эх сурвалжийг харах

fix tts module. create the base path of the TTS engine if it does not exist yet

nico 8 жил өмнө
parent
commit
5c41fe49e2
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      core/TTS/TTSModule.py

+ 5 - 0
core/TTS/TTSModule.py

@@ -58,6 +58,11 @@ class TTSModule(object):
         # load settings
         self.settings = SettingLoader.get_settings()
 
+        # create the path in the tmp folder
+        base_path = os.path.join(self.settings.cache_path, self.tts_caller_name, self.language, self.voice)
+        print base_path
+        FileManager.create_directory(base_path)
+
         logger.debug("Class TTSModule called from module %s, cache: %s, language: %s, voice: %s" % (self.tts_caller_name,
                                                                                              self.cache,
                                                                                              self.language,