Update app.py
Browse files
app.py
CHANGED
@@ -248,13 +248,13 @@ async def text_to_speech_edge(text, language_code):
|
|
248 |
input_text = gr.Textbox(lines=5, label="Input Text")
|
249 |
output_text = gr.Textbox(label="Output Text")
|
250 |
output_audio = gr.Audio(type="filepath", label="Exported Audio")
|
251 |
-
language = gr.Dropdown(choices=list(language_dict.keys()), label="
|
252 |
|
253 |
interface = gr.Interface(
|
254 |
fn=text_to_speech_edge,
|
255 |
inputs=[input_text, language],
|
256 |
outputs=[output_text, output_audio],
|
257 |
-
title="Edge TTS
|
258 |
)
|
259 |
|
260 |
if __name__ == "__main__":
|
|
|
248 |
input_text = gr.Textbox(lines=5, label="Input Text")
|
249 |
output_text = gr.Textbox(label="Output Text")
|
250 |
output_audio = gr.Audio(type="filepath", label="Exported Audio")
|
251 |
+
language = gr.Dropdown(choices=list(language_dict.keys()), label="Choose the Voice Model")
|
252 |
|
253 |
interface = gr.Interface(
|
254 |
fn=text_to_speech_edge,
|
255 |
inputs=[input_text, language],
|
256 |
outputs=[output_text, output_audio],
|
257 |
+
title="Edge TTS"
|
258 |
)
|
259 |
|
260 |
if __name__ == "__main__":
|