Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|
273 |
-
converted_waves_16k = torchaudio.functional.resample(converted_waves_24k,
|
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 |
|