fix f0 predict for harvest

This commit is contained in:
Ftps
2023-12-10 20:31:55 +09:00
parent df204f4f8b
commit 81e58cb9b7

View File

@@ -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,