voicechangevv / app.py
BasToTheMax's picture
Update app.py
e39c272
raw
history blame
470 Bytes
import gradio as gr
from TTS.api import TTS
api = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24")
def greet(source, target):
print("adio", source, target)
api.voice_conversion_to_file(source_wav=source, target_wav=target, file_path="/tmp/out.wav")
print("> Done")
return "/tmp/out.wav"
iface = gr.Interface(fn=greet, inputs=[gr.Audio(type="filepath"), gr.Audio(type="filepath")], outputs=gr.Audio(type="filepath"))
iface.launch()