Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ 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 |
-
|
|
|
40 |
outputs = gr.Audio(label="Output")
|
41 |
|
42 |
demo = gr.Interface(fn=text_to_speech, inputs=inputs, outputs=outputs)
|
|
|
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 |
+
gr.Label("Please note that Chinese, German, and Spanish are currently not supported for voice cloning.")]
|
41 |
outputs = gr.Audio(label="Output")
|
42 |
|
43 |
demo = gr.Interface(fn=text_to_speech, inputs=inputs, outputs=outputs)
|