YourTTS / app.py
akhaliq's picture
akhaliq HF Staff
Create new file
078c3a6
raw
history blame
285 Bytes
import gradio as gr
import os
def inference(text,audio):
os.system('tts --text '+text+' --model_name tts_models/multilingual/multi-dataset/your_tts --speaker_wav '+audio+' --language_idx "en"')
return "tts_output.wav"
gr.Interface(inference,["text","audio"],"audio").launch()