smjain commited on
Commit
628f018
1 Parent(s): 9e8d6c4

Upload infertest.py

Browse files
Files changed (1) hide show
  1. infertest.py +2 -1
infertest.py CHANGED
@@ -113,7 +113,7 @@ def api_convert_voice():
113
 
114
 
115
  def convert_voice(spk_id, input_audio_path, voice_transform):
116
-
117
  output_audio_path = vc_single(
118
  sid=spk_id,
119
  input_audio_path=input_audio_path,
@@ -145,6 +145,7 @@ def vc_single(
145
  protect
146
  ): # spk_item, input_audio0, vc_transform0,f0_file,f0method0
147
  global tgt_sr, net_g, vc, hubert_model, version, cpt
 
148
  try:
149
  logs = []
150
  print(f"Converting...")
 
113
 
114
 
115
  def convert_voice(spk_id, input_audio_path, voice_transform):
116
+ get_vc(spk_id,0.5):
117
  output_audio_path = vc_single(
118
  sid=spk_id,
119
  input_audio_path=input_audio_path,
 
145
  protect
146
  ): # spk_item, input_audio0, vc_transform0,f0_file,f0method0
147
  global tgt_sr, net_g, vc, hubert_model, version, cpt
148
+
149
  try:
150
  logs = []
151
  print(f"Converting...")