diff --git a/Arona_Academy_In_2.ogg.wav b/Arona_Academy_In_2.ogg.wav new file mode 100644 index 00000000..67230604 Binary files /dev/null and b/Arona_Academy_In_2.ogg.wav differ diff --git a/GPT_SoVITS/text/ja_userdic/user.dict b/GPT_SoVITS/text/ja_userdic/user.dict new file mode 100644 index 00000000..6ddcfef6 Binary files /dev/null and b/GPT_SoVITS/text/ja_userdic/user.dict differ diff --git a/GPT_SoVITS/text/ja_userdic/userdict.md5 b/GPT_SoVITS/text/ja_userdic/userdict.md5 new file mode 100644 index 00000000..d38206b3 --- /dev/null +++ b/GPT_SoVITS/text/ja_userdic/userdict.md5 @@ -0,0 +1 @@ +878b3caf4d1cd7c2927c26e85072a2f5 \ No newline at end of file diff --git a/config.py b/config.py index 5f90c5cd..10ef4b57 100644 --- a/config.py +++ b/config.py @@ -15,6 +15,8 @@ cnhubert_path = "GPT_SoVITS/pretrained_models/chinese-hubert-base" bert_path = "GPT_SoVITS/pretrained_models/chinese-roberta-wwm-ext-large" pretrained_sovits_path = "GPT_SoVITS/pretrained_models/s2G488k.pth" pretrained_gpt_path = "GPT_SoVITS/pretrained_models/s1bert25hz-2kh-longer-epoch=68e-step=50232.ckpt" +# pretrained_sovits_path = "GPT_SoVITS/pretrained_models/Aris_e16_s272.pth.pth" +# pretrained_gpt_path = "GPT_SoVITS/pretrained_models/Aris_e15.ckpt" exp_root = "logs" python_exec = sys.executable or "python" diff --git a/output.wav b/output.wav new file mode 100644 index 00000000..55062fc9 Binary files /dev/null and b/output.wav differ diff --git a/test.py b/test.py new file mode 100644 index 00000000..18e9cf6c --- /dev/null +++ b/test.py @@ -0,0 +1,24 @@ +import requests + +# API地址(本地运行时) +url = "http://127.0.0.1:9880" + +# 请求体 +payload = { + "refer_wav_path": "Arona_Academy_In_2.ogg.wav", # 替换为你的参考音频路径 + "prompt_text": "様々な授業やイベントが準備されているので、ご希望のスケジュールを選んでください!", # 参考音频中的文字 + "prompt_language": "ja", # 语言 + "text": "你好。你好。你好。你好。你好。你好。你好。你好。你好。你好。你好。", + "text_language": "zh" +} + +# 发送 POST 请求 +response = requests.post(url, json=payload) + +# 检查返回 +if response.status_code == 200: + with open("output.wav", "wb") as f: + f.write(response.content) + print("生成成功,保存为 output.wav") +else: + print(f"生成失败: {response.status_code}, 返回信息: {response.text}")