Plachta commited on
Commit
2ddbc30
β€’
1 Parent(s): a83527a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -269,8 +269,8 @@ def voice_conversion(source, target, diffusion_steps, length_adjust, inference_c
269
  style2 = campplus_model(feat2.unsqueeze(0))
270
 
271
  if f0_condition:
272
- waves_16k = torchaudio.functional.resample(waves_24k, sr, 16000)
273
- converted_waves_16k = torchaudio.functional.resample(converted_waves_24k, sr, 16000)
274
  F0_ori = rmvpe.infer_from_audio(waves_16k[0], thred=0.03)
275
  F0_alt = rmvpe.infer_from_audio(converted_waves_16k[0], thred=0.03)
276
 
 
269
  style2 = campplus_model(feat2.unsqueeze(0))
270
 
271
  if f0_condition:
272
+ waves_16k = torchaudio.functional.resample(waves_24k, 24000, 16000)
273
+ converted_waves_16k = torchaudio.functional.resample(converted_waves_24k, 24000, 16000)
274
  F0_ori = rmvpe.infer_from_audio(waves_16k[0], thred=0.03)
275
  F0_alt = rmvpe.infer_from_audio(converted_waves_16k[0], thred=0.03)
276