From 2902aaa3ba4c1b0b4461bc6a83582b669cf51baf Mon Sep 17 00:00:00 2001 From: ziang Date: Thu, 28 Apr 2022 13:58:40 +0800 Subject: [PATCH] fix resample --- src/easybird/detection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/easybird/detection.py b/src/easybird/detection.py index e00b91e..d07078a 100644 --- a/src/easybird/detection.py +++ b/src/easybird/detection.py @@ -44,7 +44,7 @@ def extract_feat(wav_path, samplerate=16000, cmn=True): } y, sr = af.read(wav_path) if sr!=samplerate: - y = soxr.resample(x, sr, samplerate) + y = soxr.resample(y, sr, samplerate) sr = samplerate logfbankFeat = logfbank(y, sr, **kwargs) if cmn: