Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,4 +16,7 @@ def text_to_speech(text, voice):
|
|
16 |
except Exception as e:
|
17 |
print("Error:", str(e))
|
18 |
|
19 |
-
|
|
|
|
|
|
|
|
16 |
except Exception as e:
|
17 |
print("Error:", str(e))
|
18 |
|
19 |
+
|
20 |
+
voice_options = ["en-US-JennyNeural", "en-US-GuyNeural"]
|
21 |
+
|
22 |
+
gr.Interface(fn=text_to_speech, inputs=["text", gr.inputs.Dropdown(voice_options)], outputs="audio").launch()
|