chilge commited on
Commit
2d38eef
1 Parent(s): 205d21f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -83,7 +83,7 @@ with app:
83
 
84
  with gr.Tabs():
85
  with gr.TabItem("使用预制情感合成"):
86
- tts_input1 = gr.TextArea(label="日语文本", value="こんにちは。私わあやちねねです。")
87
  tts_input2 = gr.Dropdown(label="情感", choices=list(emotion_dict.keys()), value="平静1")
88
  ns = gr.Slider(label="noise_scale(控制感情变化程度)", minimum=0.1, maximum=1.0, step=0.1, value=0.6, interactive=True)
89
  nsw = gr.Slider(label="noise_scale_w(控制音素发音长度)", minimum=0.1, maximum=1.0, step=0.1, value=0.668, interactive=True)
@@ -93,7 +93,7 @@ with app:
93
  tts_output2 = gr.Audio(label="Output")
94
  tts_submit.click(tts1, [tts_input1, tts_input2, ns, nsw, ls], [tts_output1, tts_output2])
95
  with gr.TabItem("随机抽取训练集样本作为情感参数"):
96
- tts_input1 = gr.TextArea(label="日语文本", value="こんにちは。私わあやちねねです。")
97
  ns = gr.Slider(label="noise_scale(控制感情变化程度)", minimum=0.1, maximum=1.0, step=0.1, value=0.6, interactive=True)
98
  nsw = gr.Slider(label="noise_scale_w(控制音素发音长度)", minimum=0.1, maximum=1.0, step=0.1, value=0.668, interactive=True)
99
  ls = gr.Slider(label="length_scale(控制整体语速)", minimum=0.1, maximum=2.0, step=0.1, value=1.2, interactive=True)
 
83
 
84
  with gr.Tabs():
85
  with gr.TabItem("使用预制情感合成"):
86
+ tts_input1 = gr.TextArea(label="日语文本", value="こんにちは。")
87
  tts_input2 = gr.Dropdown(label="情感", choices=list(emotion_dict.keys()), value="平静1")
88
  ns = gr.Slider(label="noise_scale(控制感情变化程度)", minimum=0.1, maximum=1.0, step=0.1, value=0.6, interactive=True)
89
  nsw = gr.Slider(label="noise_scale_w(控制音素发音长度)", minimum=0.1, maximum=1.0, step=0.1, value=0.668, interactive=True)
 
93
  tts_output2 = gr.Audio(label="Output")
94
  tts_submit.click(tts1, [tts_input1, tts_input2, ns, nsw, ls], [tts_output1, tts_output2])
95
  with gr.TabItem("随机抽取训练集样本作为情感参数"):
96
+ tts_input1 = gr.TextArea(label="日语文本", value="こんにちは。")
97
  ns = gr.Slider(label="noise_scale(控制感情变化程度)", minimum=0.1, maximum=1.0, step=0.1, value=0.6, interactive=True)
98
  nsw = gr.Slider(label="noise_scale_w(控制音素发音长度)", minimum=0.1, maximum=1.0, step=0.1, value=0.668, interactive=True)
99
  ls = gr.Slider(label="length_scale(控制整体语速)", minimum=0.1, maximum=2.0, step=0.1, value=1.2, interactive=True)