Merge pull request #1607 from Tps-F/fix_harvest_onnx

Fix F0 predictor for Harvest
This commit is contained in:
RVC-Boss 2023-12-10 20:07:19 +08:00 committed by GitHub
commit 5a3ad60558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,