File size: 583 Bytes
078c3a6
 
 
 
b8e7dfe
078c3a6
 
7657a0a
 
 
e5d0077
 
1
2
3
4
5
6
7
8
9
10
11
12
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"
  
title="YourTTS"
description="## Gradio Demo for [Edresson/YourTTS](https://github.com/edresson/yourtts), to use it add your text and audio file"
examples=[['This is a test','test.wav']]
gr.Interface(inference,["text",gr.Audio(type="filepath")],gr.Audio(type="filepath"),title=title,description=description,examples=examples,cache_examples
=False).launch()