From ef18f8a1147c1ed3dd186300cd790e6c1863d93e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 31 Jan 2024 16:02:08 +0800 Subject: [PATCH] bugfix --- coquitts/coqui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coquitts/coqui.py b/coquitts/coqui.py index 4b1d694..e71e359 100644 --- a/coquitts/coqui.py +++ b/coquitts/coqui.py @@ -10,7 +10,9 @@ from ahserver.serverenv import ServerEnv class TTS: def __init__(self, model_name): manager = ModelManager() - model_path, config_path, model_item = manager.download_model("tts_models/zh-CN/baker/tacotron2-DDC-GST") + # model_path, config_path, model_item = manager.download_model("tts_models/zh-CN/baker/tacotron2-DDC-GST") + model_path, config_path, model_item = manager.download_model(model_name) + print(f'reult={model_path=}, {config_path=}, {model_item=}') self.synthesizer = Synthesizer( model_path, config_path, None, None, None, )