Skip to content

Commit

Permalink
fix resample
Browse files Browse the repository at this point in the history
  • Loading branch information
realzza committed Apr 28, 2022
1 parent cdc741b commit 2902aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/easybird/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2902aaa

Please sign in to comment.