From 69f4a5b55d497401fde78a65a726ddd85c10bb47 Mon Sep 17 00:00:00 2001 From: Prithwin Ratnan Date: Tue, 20 Jan 2026 15:18:01 +0530 Subject: [PATCH] [fix] Fixed sampling rate convertion to 16000 HZ on librispeech fbank computing to match fbank extractors expected sampling rate --- egs/librispeech/ASR/local/compute_fbank_librispeech.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/egs/librispeech/ASR/local/compute_fbank_librispeech.py b/egs/librispeech/ASR/local/compute_fbank_librispeech.py index 25d6050bb5..8bb3e346c1 100755 --- a/egs/librispeech/ASR/local/compute_fbank_librispeech.py +++ b/egs/librispeech/ASR/local/compute_fbank_librispeech.py @@ -129,6 +129,10 @@ def compute_fbank_librispeech( recordings=m["recordings"], supervisions=m["supervisions"], ) + + # Resample audio to 16kHz to match Fbank extractor's expected sampling rate + logging.info(f"Resampling audio to 16000 Hz") + cut_set = cut_set.resample(16000) if "train" in partition: if bpe_model: