mrfakename commited on
Commit
822f970
1 Parent(s): 9617def

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def synthesize(speaker, text, speed, language, progress=gr.Progress()):
19
  models[language].tts_to_file(text, speaker_ids[speaker], bio, speed=speed, pbar=progress.tqdm, format='wav')
20
  return bio.getvalue()
21
  def load_speakers(language):
22
- return gr.update(choices=models[language].hps.data.spk2id, value=models[language].hps.data.spk2id[0])
23
  with gr.Blocks() as demo:
24
  gr.Markdown('# MeloTTS\n\nAn unofficial demo of [MeloTTS](https://github.com/myshell-ai/MeloTTS) from MyShell AI. MeloTTS is a permissively licensed (MIT) SOTA multi-speaker TTS model.\n\nI am not affiliated with MyShell AI in any way.\n\nThis demo currently only supports English, but the model itself supports other languages.')
25
  with gr.Group():
 
19
  models[language].tts_to_file(text, speaker_ids[speaker], bio, speed=speed, pbar=progress.tqdm, format='wav')
20
  return bio.getvalue()
21
  def load_speakers(language):
22
+ return gr.update(choices=models[language].hps.data.spk2id, value=models[language].hps.data.spk2id[list(models[language].hps.data.spk2id.keys())[0]])
23
  with gr.Blocks() as demo:
24
  gr.Markdown('# MeloTTS\n\nAn unofficial demo of [MeloTTS](https://github.com/myshell-ai/MeloTTS) from MyShell AI. MeloTTS is a permissively licensed (MIT) SOTA multi-speaker TTS model.\n\nI am not affiliated with MyShell AI in any way.\n\nThis demo currently only supports English, but the model itself supports other languages.')
25
  with gr.Group():