Spaces:
Sleeping
Sleeping
Mahiruoshi
commited on
Commit
·
7d82bc1
1
Parent(s):
fab0c98
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ class VitsGradio:
|
|
29 |
with gr.Blocks() as self.Vits:
|
30 |
gr.Markdown(
|
31 |
"## <center> Vits chatbot后端演示,直接在本机上克隆并部署该space即可。搭配前端使用: https://github.com/Arkueid/Live2DMascot\n"
|
32 |
-
"## <center> 使用方法:在控制面板选择tts模型与说话人,并且设置gpt的api key,之后会生成语音合成的api
|
33 |
"### <center> 我移除了pyopenjtalk,如果合成不了日语就直接摆烂,所以不存在安装困难的情况.运行main.py后直接打开ui界面配置:http://127.0.0.1:7860/\n"
|
34 |
"### <center> 如果有能力,可自行替换text文件夹\n")
|
35 |
with gr.Tab("调试用"):
|
@@ -66,7 +66,7 @@ class VitsGradio:
|
|
66 |
self.input2 = gr.Dropdown(label="Language", choices=self.lan, value="自动", interactive=True)
|
67 |
with gr.Column():
|
68 |
btnVC = gr.Button("完成vits TTS端设定")
|
69 |
-
self.input3 = gr.Dropdown(label="Speaker", choices=list(range(114514)), value=
|
70 |
self.input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.6)
|
71 |
self.input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.668)
|
72 |
self.input6 = gr.Slider(minimum=0.1, maximum=10, label="duration", value=1)
|
|
|
29 |
with gr.Blocks() as self.Vits:
|
30 |
gr.Markdown(
|
31 |
"## <center> Vits chatbot后端演示,直接在本机上克隆并部署该space即可。搭配前端使用: https://github.com/Arkueid/Live2DMascot\n"
|
32 |
+
"## <center> 使用方法:在控制面板选择tts模型与说话人,并且设置gpt的api key,之后会生成语音合成的api。"
|
33 |
"### <center> 我移除了pyopenjtalk,如果合成不了日语就直接摆烂,所以不存在安装困难的情况.运行main.py后直接打开ui界面配置:http://127.0.0.1:7860/\n"
|
34 |
"### <center> 如果有能力,可自行替换text文件夹\n")
|
35 |
with gr.Tab("调试用"):
|
|
|
66 |
self.input2 = gr.Dropdown(label="Language", choices=self.lan, value="自动", interactive=True)
|
67 |
with gr.Column():
|
68 |
btnVC = gr.Button("完成vits TTS端设定")
|
69 |
+
self.input3 = gr.Dropdown(label="Speaker", choices=list(range(114514)), value=21, interactive=True)
|
70 |
self.input4 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声比例(noise scale),以控制情感", value=0.6)
|
71 |
self.input5 = gr.Slider(minimum=0, maximum=1.0, label="更改噪声偏差(noise scale w),以控制音素长短", value=0.668)
|
72 |
self.input6 = gr.Slider(minimum=0.1, maximum=10, label="duration", value=1)
|