Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ from TTS.api import TTS
|
|
5 |
tts = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts", progress_bar = False, gpu=False)
|
6 |
zh_tts = TTS(model_name="tts_models/zh-CN/baker/tacotron2-DDC-GST", progress_bar=False, gpu=False)
|
7 |
de_tts = TTS(model_name = "tts_models/de/thorsten/vits", gpu=False)
|
8 |
-
# de_tts = TTS(model_name = "tts_models/de/thorsten/tacotron2-DCA", gpu=False)
|
9 |
es_tts = TTS(model_name = "tts_models/es/mai/tacotron2-DDC", progress_bar=False, gpu=False)
|
10 |
|
11 |
def text_to_speech(text: str, speaker_wav, speaker_wav_file, language: str):
|
@@ -37,7 +36,7 @@ def text_to_speech(text: str, speaker_wav, speaker_wav_file, language: str):
|
|
37 |
inputs = [gr.Textbox(label="Input the text", value="", max_lines=3),
|
38 |
gr.Audio(label="Voice to clone", source="microphone", type="filepath"),
|
39 |
gr.Audio(label="Voice to clone", type="filepath"),
|
40 |
-
gr.Radio(label="Language", choices=["en", "zh-CN", "fr-fr", "de", "es"], value="en")]
|
41 |
outputs = gr.Audio(label="Output")
|
42 |
|
43 |
demo = gr.Interface(fn=text_to_speech, inputs=inputs, outputs=outputs)
|
|
|
5 |
tts = TTS(model_name="tts_models/multilingual/multi-dataset/your_tts", progress_bar = False, gpu=False)
|
6 |
zh_tts = TTS(model_name="tts_models/zh-CN/baker/tacotron2-DDC-GST", progress_bar=False, gpu=False)
|
7 |
de_tts = TTS(model_name = "tts_models/de/thorsten/vits", gpu=False)
|
|
|
8 |
es_tts = TTS(model_name = "tts_models/es/mai/tacotron2-DDC", progress_bar=False, gpu=False)
|
9 |
|
10 |
def text_to_speech(text: str, speaker_wav, speaker_wav_file, language: str):
|
|
|
36 |
inputs = [gr.Textbox(label="Input the text", value="", max_lines=3),
|
37 |
gr.Audio(label="Voice to clone", source="microphone", type="filepath"),
|
38 |
gr.Audio(label="Voice to clone", type="filepath"),
|
39 |
+
gr.Radio(label="Language", choices=["en", "zh-CN", "fr-fr", "pt-br", "de", "es"], value="en")]
|
40 |
outputs = gr.Audio(label="Output")
|
41 |
|
42 |
demo = gr.Interface(fn=text_to_speech, inputs=inputs, outputs=outputs)
|