Mahiruoshi
commited on
Commit
·
a59b779
1
Parent(s):
066e743
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
import time
|
3 |
import matplotlib.pyplot as plt
|
4 |
import IPython.display as ipd
|
@@ -145,7 +145,7 @@ def infer(language,text,tts_input2,tts_input3,speaker_id,n_scale= 0.667,n_scale_
|
|
145 |
print(spending_time)
|
146 |
return (hps_ms.data.sampling_rate, audio)
|
147 |
lan = ["中文","日文","对话"]
|
148 |
-
idols = ["高咲侑(误)","歩夢","かすみ","しずく","果林","愛","彼方","せつ菜","璃奈","栞子","エマ","ランジュ","ミア"
|
149 |
|
150 |
|
151 |
dev = torch.device("cpu")
|
@@ -167,13 +167,13 @@ with app:
|
|
167 |
|
168 |
with gr.TabItem("Basic"):
|
169 |
|
170 |
-
tts_input1 = gr.TextArea(label="
|
171 |
-
tts_input2 = gr.TextArea(label="如需使用openai,输入你的openai-key", value="官网")
|
172 |
-
tts_input3 = gr.TextArea(label="写上你给她的设定", value="
|
173 |
-
language = gr.Dropdown(label="选择合成方式",choices=lan, value="
|
174 |
-
para_input1 = gr.Slider(minimum= 0.01,maximum=1.0,label="
|
175 |
-
para_input2 = gr.Slider(minimum= 0.01,maximum=1.0,label="
|
176 |
-
para_input3 = gr.Slider(minimum= 0.1,maximum=10,label="更改时间比例", value=
|
177 |
tts_submit = gr.Button("Generate", variant="primary")
|
178 |
speaker1 = gr.Dropdown(label="选择说话人",choices=idols, value="かすみ", interactive=True)
|
179 |
tts_output2 = gr.Audio(label="Output")
|
|
|
1 |
+
|
2 |
import time
|
3 |
import matplotlib.pyplot as plt
|
4 |
import IPython.display as ipd
|
|
|
145 |
print(spending_time)
|
146 |
return (hps_ms.data.sampling_rate, audio)
|
147 |
lan = ["中文","日文","对话"]
|
148 |
+
idols = ["高咲侑(误)","歩夢","かすみ","しずく","果林","愛","彼方","せつ菜","璃奈","栞子","エマ","ランジュ","ミア"]
|
149 |
|
150 |
|
151 |
dev = torch.device("cpu")
|
|
|
167 |
|
168 |
with gr.TabItem("Basic"):
|
169 |
|
170 |
+
tts_input1 = gr.TextArea(label="输入你的文本,onnx版在另一个仓库", value="一次審査、二次審査、それぞれの欄に記入をお願いします。")
|
171 |
+
tts_input2 = gr.TextArea(label="如需使用openai,输入你的openai-key,合成方式选择对话", value="官网")
|
172 |
+
tts_input3 = gr.TextArea(label="写上你给她的设定", value="")
|
173 |
+
language = gr.Dropdown(label="选择合成方式",choices=lan, value="日文", interactive=True)
|
174 |
+
para_input1 = gr.Slider(minimum= 0.01,maximum=1.0,label="更改噪声比例", value=0.227)
|
175 |
+
para_input2 = gr.Slider(minimum= 0.01,maximum=1.0,label="更改噪声偏差", value=0.3)
|
176 |
+
para_input3 = gr.Slider(minimum= 0.1,maximum=10,label="更改时间比例", value=0.6)
|
177 |
tts_submit = gr.Button("Generate", variant="primary")
|
178 |
speaker1 = gr.Dropdown(label="选择说话人",choices=idols, value="かすみ", interactive=True)
|
179 |
tts_output2 = gr.Audio(label="Output")
|