From 81e58cb9b76df90a53dd905d209ae32b9a239a6f Mon Sep 17 00:00:00 2001 From: Ftps Date: Sun, 10 Dec 2023 20:31:55 +0900 Subject: [PATCH] fix f0 predict for harvest --- rvc/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rvc/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py b/rvc/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py index 7daf5a0..6357899 100644 --- a/rvc/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py +++ b/rvc/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py @@ -65,7 +65,7 @@ class HarvestF0Predictor(F0Predictor): p_len = wav.shape[0] // self.hop_length f0, t = pyworld.harvest( wav.astype(np.double), - fs=self.hop_length, + fs=self.sampling_rate, f0_ceil=self.f0_max, f0_floor=self.f0_min, frame_period=1000 * self.hop_length / self.sampling_rate,