From 45133bc752afd9a82144f05f762ccddbde17bf73 Mon Sep 17 00:00:00 2001 From: Ftps Date: Sun, 10 Dec 2023 19:33:12 +0900 Subject: [PATCH] FIx F0 predictor for Harvet --- infer/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py b/infer/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py index 27f3356..2b13917 100644 --- a/infer/lib/infer_pack/modules/F0Predictor/HarvestF0Predictor.py +++ b/infer/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,