Spaces:
Runtime error
Runtime error
Digital Xingtong
commited on
Commit
•
221b8b8
1
Parent(s):
f410c1f
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,22 @@ if __name__ == "__main__":
|
|
134 |
2、原项目地址:https://github.com/Stardust-minus/Bert-VITS2\n
|
135 |
3、使用此模型进行二创请注明AI生成,以及该项目地址。\n
|
136 |
4、如果想生成超长txt文本的音频请使用colab。 https://colab.research.google.com/drive/13ek8_j1aknr-pbjj3NXxSM4vBIsracU3?usp=drive_link\n
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
星瞳 https://huggingface.co/spaces/digitalxingtong/Xingtong-Bert-Vits2 \n
|
139 |
七海 https://huggingface.co/spaces/digitalxingtong/Nanami-Bert-Vits2 \n
|
140 |
阿梓 https://huggingface.co/spaces/digitalxingtong/Azusa-Bert-Vits2 \n
|
@@ -150,19 +165,6 @@ if __name__ == "__main__":
|
|
150 |
鹿鸣 https://huggingface.co/spaces/digitalxingtong/Luming-Bert-Vits2 \n
|
151 |
永雏塔菲 https://huggingface.co/spaces/digitalxingtong/Taffy-Bert-VITS2 \n
|
152 |
""")
|
153 |
-
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
154 |
-
value="这里是数字星瞳企画,请在电报搜索星瞳全拼加二五六八零,获取最新更新进展。")
|
155 |
-
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
156 |
-
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='语调变化')
|
157 |
-
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.6, step=0.01, label='感情变化')
|
158 |
-
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.8, step=0.01, label='音节发音长度变化')
|
159 |
-
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='语速')
|
160 |
-
btn = gr.Button("开启AI语音之旅吧!", variant="primary")
|
161 |
-
with gr.Column():
|
162 |
-
text_output = gr.Textbox(label="Message")
|
163 |
-
audio_output = gr.Audio(label="Output Audio")
|
164 |
-
ogg_output = gr.File(label="Converted OGG file")
|
165 |
-
|
166 |
btn.click(tts_fn,
|
167 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
168 |
outputs=[text_output, audio_output,ogg_output])
|
|
|
134 |
2、原项目地址:https://github.com/Stardust-minus/Bert-VITS2\n
|
135 |
3、使用此模型进行二创请注明AI生成,以及该项目地址。\n
|
136 |
4、如果想生成超长txt文本的音频请使用colab。 https://colab.research.google.com/drive/13ek8_j1aknr-pbjj3NXxSM4vBIsracU3?usp=drive_link\n
|
137 |
+
|
138 |
+
""")
|
139 |
+
text = gr.TextArea(label="Text", placeholder="Input Text Here",
|
140 |
+
value="这里是数字星瞳企画,请在电报搜索星瞳全拼加二五六八零,获取最新更新进展。")
|
141 |
+
speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
|
142 |
+
sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='语调变化')
|
143 |
+
noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.6, step=0.01, label='感情变化')
|
144 |
+
noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.8, step=0.01, label='音节发音长度变化')
|
145 |
+
length_scale = gr.Slider(minimum=0.1, maximum=2, value=1, step=0.01, label='语速')
|
146 |
+
btn = gr.Button("开启AI语音之旅吧!", variant="primary")
|
147 |
+
with gr.Column():
|
148 |
+
text_output = gr.Textbox(label="Message")
|
149 |
+
audio_output = gr.Audio(label="Output Audio")
|
150 |
+
ogg_output = gr.File(label="Converted OGG file")
|
151 |
+
gr.Markdown(value="""
|
152 |
+
模型汇总:\n
|
153 |
星瞳 https://huggingface.co/spaces/digitalxingtong/Xingtong-Bert-Vits2 \n
|
154 |
七海 https://huggingface.co/spaces/digitalxingtong/Nanami-Bert-Vits2 \n
|
155 |
阿梓 https://huggingface.co/spaces/digitalxingtong/Azusa-Bert-Vits2 \n
|
|
|
165 |
鹿鸣 https://huggingface.co/spaces/digitalxingtong/Luming-Bert-Vits2 \n
|
166 |
永雏塔菲 https://huggingface.co/spaces/digitalxingtong/Taffy-Bert-VITS2 \n
|
167 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
btn.click(tts_fn,
|
169 |
inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
|
170 |
outputs=[text_output, audio_output,ogg_output])
|