xJuuzouYTx commited on
Commit
8a54adc
1 Parent(s): b56d565

[ADD] default voices

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -153,11 +153,11 @@ def search_model(name):
153
 
154
  def update_tts_methods_voice(select_value):
155
  if select_value == "Edge-tts":
156
- return gr.Dropdown.update(choices=EDGE_VOICES, visible=True), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
157
  elif select_value == "Bark-tts":
158
  return gr.Dropdown.update(choices=BARK_VOICES, visible=True), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
159
  elif select_value == 'ElevenLabs':
160
- return gr.Dropdown.update(choices=ELEVENLABS_VOICES_NAMES, visible=True), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
161
  elif select_value == 'CoquiTTS':
162
  return gr.Dropdown.update(visible=False), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False), gr.Radio.update(visible=True)
163
 
 
153
 
154
  def update_tts_methods_voice(select_value):
155
  if select_value == "Edge-tts":
156
+ return gr.Dropdown.update(choices=EDGE_VOICES, visible=True, value="es-CO-GonzaloNeural-Male"), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
157
  elif select_value == "Bark-tts":
158
  return gr.Dropdown.update(choices=BARK_VOICES, visible=True), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False),gr.Radio.update(visible=False)
159
  elif select_value == 'ElevenLabs':
160
+ return gr.Dropdown.update(choices=ELEVENLABS_VOICES_NAMES, visible=True, value="Bella"), gr.Markdown.update(visible=True), gr.Textbox.update(visible=True), gr.Radio.update(visible=False)
161
  elif select_value == 'CoquiTTS':
162
  return gr.Dropdown.update(visible=False), gr.Markdown.update(visible=False), gr.Textbox.update(visible=False), gr.Radio.update(visible=True)
163