This commit is contained in:
yumoqing 2024-01-31 16:02:08 +08:00
parent fb14aef827
commit ef18f8a114

View File

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