From 91ffb3f57221e42a24c90da52b594307ec886641 Mon Sep 17 00:00:00 2001 From: Lotte V <61566058+lottev1991@users.noreply.github.com> Date: Thu, 25 Apr 2024 01:01:26 +0200 Subject: [PATCH] Fix D4C binarize threshold --- utils/binarizer_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/binarizer_utils.py b/utils/binarizer_utils.py index 04dbf12ab..e4747b88e 100644 --- a/utils/binarizer_utils.py +++ b/utils/binarizer_utils.py @@ -150,7 +150,7 @@ def _world_extraction(self): t = np.arange(0, wav_frames) * time_step self._f0_world = f0 self._sp = pw.cheaptrick(x, f0, t, samplerate, fft_size=fft_size) # extract smoothed spectrogram - self._ap = pw.d4c(x, f0, t, samplerate, fft_size=fft_size) # extract aperiodicity + self._ap = pw.d4c(x, f0, t, samplerate, fft_size=fft_size, threshold=0.25) # extract aperiodicity def _kth_harmonic(self, k: int) -> np.ndarray: """