BasToTheMax commited on
Commit
50de06b
·
1 Parent(s): 212dccf
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from TTS.api import TTS
4
  api = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24")
5
 
6
  def greet(source, target):
7
- tts.voice_conversion_to_file(source_wav=source, target_wav=target, file_path="/tmp/out.wav")
8
  return "/tmp/out.wav"
9
 
10
  iface = gr.Interface(fn=greet, inputs=[gr.Audio(type="filepath"), gr.Audio(type="filepath")], outputs=gr.Audio(type="filepath"))
 
4
  api = TTS(model_name="voice_conversion_models/multilingual/vctk/freevc24")
5
 
6
  def greet(source, target):
7
+ api.voice_conversion_to_file(source_wav=source, target_wav=target, file_path="/tmp/out.wav")
8
  return "/tmp/out.wav"
9
 
10
  iface = gr.Interface(fn=greet, inputs=[gr.Audio(type="filepath"), gr.Audio(type="filepath")], outputs=gr.Audio(type="filepath"))