1
0
mirror of https://github.com/janvarev/Irene-Voice-Assistant.git synced 2025-11-23 22:45:08 +02:00
- опция useTTSCache
- ttsCache файлы кладутся в подпапку tts_cache/<ttsEngineId>
This commit is contained in:
janvarev
2022-05-12 15:34:16 +03:00
parent 5605769001
commit cb665e8567
2 changed files with 7 additions and 3 deletions

View File

@@ -59,6 +59,10 @@ def start_with_options(core:VACore, manifest:dict):
core.tts_cache_dir = "tts_cache"
if not os.path.exists(core.tts_cache_dir):
os.mkdir(core.tts_cache_dir)
if not os.path.exists(core.tts_cache_dir+"/"+core.ttsEngineId):
os.mkdir(core.tts_cache_dir+"/"+core.ttsEngineId)
import lingua_franca
lingua_franca.load_language(options["linguaFrancaLang"])