Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ 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",gr.Audio(type="filepath")],gr.Audio(type="filepath")).launch()
|
|
|
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",gr.Audio(type="filepath")],gr.Audio(type="filepath")).launch()
|