Spaces:
Build error
Build error
add_240115190434
Browse files- Arasaka.pth → MODELS/Arasaka.pth +0 -0
- MODELS/{BAD1100.pth → HER_1100.pth} +1 -1
- MODELS/{BG1300.pth → TERRA.pth} +1 -1
- MODELS/hammer.pth +0 -3
- MODELS/{DLM.pth → hypno.pth} +1 -1
- MODELS/lucid.pth +0 -3
- MODELS/{endlessstar.pth → premj.pth} +1 -1
- MODELS/v3.pth +3 -0
- MODELS/vv.pth +0 -3
- app.py +12 -14
Arasaka.pth → MODELS/Arasaka.pth
RENAMED
|
File without changes
|
MODELS/{BAD1100.pth → HER_1100.pth}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 629528157
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0053eb1b3d39c3f818cb18bc257b9f3a33e123a403bba22e4b31f140e91d939b
|
| 3 |
size 629528157
|
MODELS/{BG1300.pth → TERRA.pth}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 629528157
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aa400e907a126dc17d4eaca412f9ca7832844ea0964c8319b01dc99610ce13e1
|
| 3 |
size 629528157
|
MODELS/hammer.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:28d22561ca054aee9a16892dbed4086c6017b57e60a7c242732607a38c1cd772
|
| 3 |
-
size 629473182
|
|
|
|
|
|
|
|
|
|
|
|
MODELS/{DLM.pth → hypno.pth}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 629528157
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f47be236069bc0254d188c479fef99dbd4d2d908fb5b6444d5ddfd1f45caae0a
|
| 3 |
size 629528157
|
MODELS/lucid.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:87e8108e882ed9a58327055127ac29ca9740dca59c706de00e30726634098f8e
|
| 3 |
-
size 629528157
|
|
|
|
|
|
|
|
|
|
|
|
MODELS/{endlessstar.pth → premj.pth}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 629528157
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0197dfe39dd9f87008bc68e271545a17d5836ab1b5fd876beea5295dbe9e6182
|
| 3 |
size 629528157
|
MODELS/v3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9b3ec8e49f19a41ef6601a35d3cd5bed2f0a5fa3d7c90c064726206675aa746
|
| 3 |
+
size 629528157
|
MODELS/vv.pth
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:04188ce0fa1308b7bab0e27800df6b96808a5c5d22cdd48c1ea6c17f01638a43
|
| 3 |
-
size 629528157
|
|
|
|
|
|
|
|
|
|
|
|
app.py
CHANGED
|
@@ -18,18 +18,15 @@ models = {
|
|
| 18 |
"Mellowdear": "./MODELS/adorabledarling.pth",
|
| 19 |
"MistyNikki": "./MODELS/nikki9400.pth",
|
| 20 |
"Silverleg": "./MODELS/J8900.pth",
|
| 21 |
-
"
|
| 22 |
-
"LucidMoon": "./MODELS/lucid.pth",
|
| 23 |
"Rrabbitt": "./MODELS/rabbit4900.pth",
|
| 24 |
-
"
|
| 25 |
"AlluWin": "./MODELS/AW.pth",
|
| 26 |
-
"
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
|
| 31 |
-
"BadBoyDLM": "./MODELS/BAD1100.pth",
|
| 32 |
-
|
| 33 |
}
|
| 34 |
|
| 35 |
def get_text(text, language_str, hps):
|
|
@@ -123,18 +120,19 @@ if __name__ == "__main__":
|
|
| 123 |
with gr.Column():
|
| 124 |
|
| 125 |
gr.Markdown('''
|
| 126 |
-
|
|
|
|
| 127 |
''')
|
| 128 |
-
text = gr.TextArea(label="输入需要生成语音的文字", placeholder="输入文字",
|
| 129 |
value="今天拿白金了吗",
|
| 130 |
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字。字数越多,生成速度越慢,请耐心等待,只会说中文。",
|
| 131 |
)
|
| 132 |
-
model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='
|
| 133 |
with gr.Accordion(label="展开设置生成参数", open=False):
|
| 134 |
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比',info='可控制一定程度的语调变化')
|
| 135 |
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')
|
| 136 |
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.9, step=0.01, label='音节长度')
|
| 137 |
-
length_scale = gr.Slider(minimum=0.1, maximum=2, value=
|
| 138 |
btn = gr.Button("✨生成", variant="primary")
|
| 139 |
with gr.Column():
|
| 140 |
audio_output = gr.Audio(label="试听")
|
|
|
|
| 18 |
"Mellowdear": "./MODELS/adorabledarling.pth",
|
| 19 |
"MistyNikki": "./MODELS/nikki9400.pth",
|
| 20 |
"Silverleg": "./MODELS/J8900.pth",
|
| 21 |
+
"Xelo": "./MODELS/HER_1100.pth",
|
|
|
|
| 22 |
"Rrabbitt": "./MODELS/rabbit4900.pth",
|
| 23 |
+
"VVV": "./MODELS/v3.pth",
|
| 24 |
"AlluWin": "./MODELS/AW.pth",
|
| 25 |
+
"Hypnosia": "./MODELS/hypno.pth",
|
| 26 |
+
"PremJ": "./MODELS/premj.pth",
|
| 27 |
+
"Umemura": "./MODELS/take2.pth",
|
| 28 |
+
"ArasakaAI": "./MODELS/Arasaka.pth",
|
| 29 |
+
"Terra": "./MODELS/TERRA.pth",
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
def get_text(text, language_str, hps):
|
|
|
|
| 120 |
with gr.Column():
|
| 121 |
|
| 122 |
gr.Markdown('''
|
| 123 |
+
**仅供测试用**质量参差
|
| 124 |
+
模型训练以及推理基于开源项目Bert-VITS2:https://github.com/fishaudio/Bert-VITS2
|
| 125 |
''')
|
| 126 |
+
text = gr.TextArea(label="输入需要生成语音的文字(标点也会影响语气)", placeholder="输入文字",
|
| 127 |
value="今天拿白金了吗",
|
| 128 |
info="使用huggingface的免费CPU进行推理,因此速度不快,一次性不要输入超过500汉字。字数越多,生成速度越慢,请耐心等待,只会说中文。",
|
| 129 |
)
|
| 130 |
+
model = gr.Radio(choices=list(models.keys()), value=list(models.keys())[0], label='声音模型')
|
| 131 |
with gr.Accordion(label="展开设置生成参数", open=False):
|
| 132 |
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='SDP/DP混合比',info='可控制一定程度的语调变化')
|
| 133 |
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.5, step=0.01, label='感情变化')
|
| 134 |
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.9, step=0.01, label='音节长度')
|
| 135 |
+
length_scale = gr.Slider(minimum=0.1, maximum=2, value=0.9, step=0.01, label='生成语音总长度',info='数值越大,语速越慢')
|
| 136 |
btn = gr.Button("✨生成", variant="primary")
|
| 137 |
with gr.Column():
|
| 138 |
audio_output = gr.Audio(label="试听")
|