akhaliq HF staff commited on
Commit
078c3a6
·
1 Parent(s): e06779f

Create new file

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+ def inference(text,audio):
5
+ os.system('tts --text '+text+' --model_name tts_models/multilingual/multi-dataset/your_tts --speaker_wav '+audio+' --language_idx "en"')
6
+ return "tts_output.wav"
7
+
8
+ gr.Interface(inference,["text","audio"],"audio").launch()