Ailyth commited on
Commit
29da029
1 Parent(s): a1b9061

add_240115190434

Browse files
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:4ccd138e10a910bf44a5843561551e5ce8a5fae564cd29cdcbbe9beaa74714c4
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:f510aedc4739bc068be66da13e6c6bcd0ecab41be58d06d771f7e33c596b8eb6
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:3f4187dbad0c4b817dfdb8e2db8b9bb35ed98280e2d5580215d346e416bbf82e
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:6940ed126fb9f8d76737736b6d6f3affc26edb3a205a7f2baa0dc312df182b7e
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
- "Umemura": "./MODELS/take2.pth",
22
- "LucidMoon": "./MODELS/lucid.pth",
23
  "Rrabbitt": "./MODELS/rabbit4900.pth",
24
- "VivaciousViolet": "./MODELS/vv.pth",
25
  "AlluWin": "./MODELS/AW.pth",
26
- "ImmenseStar": "./MODELS/endlessstar.pth",
27
- "LightHammer": "./MODELS/hammer.pth",
28
- "ArasakaAI": "Arasaka.pth",
29
- "DLM": "./MODELS/DLM.pth",
30
- "BadGirlDLM": "./MODELS/BG1300.pth",
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=1, step=0.01, label='生成语音总长度',info='数值越大,语速越慢')
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="试听")