Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

update data filtering recipe

haoneng.lhna8e92e4fb4b9
diff --git a/funasr/utils/wav_utils.py b/funasr/utils/wav_utils.py
index 4a764a9d1..ebb80d290 100644
--- a/funasr/utils/wav_utils.py
+++ b/funasr/utils/wav_utils.py
@@ -299,7 +299,7 @@ def filter_wav_text(data_dir, dataset):
wav_dict = {}
for line in wav_lines:
parts = line.strip().split()
- if len(parts) < 2:
+ if len(parts) != 2:
continue
sample_name, wav_path = parts
wav_dict[sample_name] = wav_path