Nick088 commited on
Commit
f6a5f10
1 Parent(s): b23d86c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- gr.Interface(fn=text_to_speech, inputs=["text", "text"], outputs="audio").launch()
 
 
 
 
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()