mrfakename
commited on
Commit
•
9617def
1
Parent(s):
a67e497
Update app.py
Browse files
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 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.')
|
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[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():
|