From 693edd8bedd5a968a457bf88cbd175cdd1c85736 Mon Sep 17 00:00:00 2001 From: jameson512 <2867557054@qq.com> Date: Tue, 9 Jul 2024 09:37:56 +0800 Subject: [PATCH] Update: update ChatTTS core --- uilib/utils.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/uilib/utils.py b/uilib/utils.py index ea3c61b..b19847c 100644 --- a/uilib/utils.py +++ b/uilib/utils.py @@ -223,19 +223,6 @@ def ClearWav(directory): return False, str(e) return True, "所有wav文件已被删除." -# 保存音色 -# 参考 https://github.com/craii/ChatTTS_WebUI/blob/main/utils.py -<<<<<<< HEAD -def save_speaker(name, spk): -======= -def save_speaker(name, tensor): ->>>>>>> ab4c6e1aa2b7fa2e2283f8542d12ca6bb0dcb64d - try: - #df = pd.DataFrame({"speaker": [float(i) for i in tensor]}) - #df.to_csv(f"{SPEAKER_DIR}/{name}.csv", index=False, header=False) - torch.save(f"{SPEAKER_DIR}/{name}.pt") - except Exception as e: - print(e) # 加载音色