File size: 470 Bytes
1c55f95
212dccf
1c55f95
212dccf
1c55f95
212dccf
e39c272
50de06b
e39c272
 
212dccf
 
 
1c55f95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()