فهرست منبع

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

nico 10 سال پیش
والد
کامیت
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,