mrfakename commited on
Commit
a67e497
1 Parent(s): 730aa5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ def synthesize(speaker, text, speed, language, progress=gr.Progress()):
18
  bio = io.BytesIO()
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_language(language):
22
  return models[language].hps.data.spk2id
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.')
 
18
  bio = io.BytesIO()
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 models[language].hps.data.spk2id
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.')