smjain commited on
Commit
a178205
1 Parent(s): 6d8d14c

Upload infertest.py

Browse files
Files changed (1) hide show
  1. infertest.py +3 -3
infertest.py CHANGED
@@ -115,12 +115,12 @@ def api_convert_voice():
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,
120
  f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_key
121
  f0_file=None ,
122
  f0_method="rmvpe",
123
- file_index="model.index", # Assuming file_index_path corresponds to file_index
124
  index_rate=0.75,
125
  filter_radius=3,
126
  resample_sr=0,
@@ -161,7 +161,7 @@ def vc_single(
161
  audio_opt = vc.pipeline(
162
  hubert_model,
163
  net_g,
164
- sid,
165
  audio,
166
  input_audio_path,
167
  times,
 
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=0,
119
  input_audio_path=input_audio_path,
120
  f0_up_key=voice_transform, # Assuming voice_transform corresponds to f0_up_key
121
  f0_file=None ,
122
  f0_method="rmvpe",
123
+ file_index=spk_id, # Assuming file_index_path corresponds to file_index
124
  index_rate=0.75,
125
  filter_radius=3,
126
  resample_sr=0,
 
161
  audio_opt = vc.pipeline(
162
  hubert_model,
163
  net_g,
164
+ 0,
165
  audio,
166
  input_audio_path,
167
  times,