Digital Xingtong commited on
Commit
0627904
1 Parent(s): 2f1450a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -142,7 +142,7 @@ if __name__ == "__main__":
142
  """)
143
  text = gr.TextArea(label="Text", placeholder="Input Text Here",
144
  value="这里是数字星瞳企画,请在电报搜索星瞳全拼加二五六八零,获取最新更新进展。")
145
- # speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
146
  sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='语调变化')
147
  noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.6, step=0.01, label='感情变化')
148
  noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.8, step=0.01, label='音节发音长度变化')
@@ -154,7 +154,7 @@ if __name__ == "__main__":
154
  ogg_output = gr.File(label="Converted OGG file")
155
 
156
  btn.click(tts_fn,
157
- inputs=[text, "ign", sdp_ratio, noise_scale, noise_scale_w, length_scale],
158
  outputs=[text_output, audio_output,ogg_output])
159
 
160
 
 
142
  """)
143
  text = gr.TextArea(label="Text", placeholder="Input Text Here",
144
  value="这里是数字星瞳企画,请在电报搜索星瞳全拼加二五六八零,获取最新更新进展。")
145
+ speaker = gr.Dropdown(choices=speakers, value=speakers[0], label='Speaker')
146
  sdp_ratio = gr.Slider(minimum=0, maximum=1, value=0.2, step=0.01, label='语调变化')
147
  noise_scale = gr.Slider(minimum=0.1, maximum=1.5, value=0.6, step=0.01, label='感情变化')
148
  noise_scale_w = gr.Slider(minimum=0.1, maximum=1.4, value=0.8, step=0.01, label='音节发音长度变化')
 
154
  ogg_output = gr.File(label="Converted OGG file")
155
 
156
  btn.click(tts_fn,
157
+ inputs=[text, speaker, sdp_ratio, noise_scale, noise_scale_w, length_scale],
158
  outputs=[text_output, audio_output,ogg_output])
159
 
160