Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,10 +18,10 @@ async def text_to_speech_edge(text, language_code):
|
|
| 18 |
await communicate.save(tmp_path)
|
| 19 |
return f"Speech synthesis completed for: {text}", tmp_path
|
| 20 |
|
| 21 |
-
input_text = gr.
|
| 22 |
-
output_text = gr.
|
| 23 |
-
output_audio = gr.
|
| 24 |
-
language = gr.
|
| 25 |
|
| 26 |
interface = gr.Interface(
|
| 27 |
fn=text_to_speech_edge,
|
|
|
|
| 18 |
await communicate.save(tmp_path)
|
| 19 |
return f"Speech synthesis completed for: {text}", tmp_path
|
| 20 |
|
| 21 |
+
input_text = gr.Textbox(lines=5, label="Input Text")
|
| 22 |
+
output_text = gr.Textbox(label="Output Text")
|
| 23 |
+
output_audio = gr.Audio(type="filepath", label="Exported Audio")
|
| 24 |
+
language = gr.Dropdown(choices=list(language_dict.keys()), label="Language")
|
| 25 |
|
| 26 |
interface = gr.Interface(
|
| 27 |
fn=text_to_speech_edge,
|