Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.
Python asraudiochineseemotion-recognitionfunasrmcp-servermultilingual-asropenai-compatible-apiparaformerpunctuationpytorchreal-time-asrspeaker-diarizationspeech-recognitionspeech-to-textstreaming-asrtranscriptionvllmvoice-activity-detectionwhisper-alternative
Update iterable_dataset.py
hnluofa1df9082762
diff --git a/funasr/datasets/iterable_dataset.py b/funasr/datasets/iterable_dataset.pyindex 44366183f..bd8da7a57 100644--- a/funasr/datasets/iterable_dataset.py+++ b/funasr/datasets/iterable_dataset.py@@ -244,10 +244,14 @@ class IterableESPnetDataset(IterableDataset):array = torchaudio.transforms.Resample(orig_freq=audio_fs,new_freq=model_fs)(array)array = array.numpy()- if self.mc:- data[name] = array.transpose(0, 1)++ if _type == "sound":+ if self.mc:+ data[name] = array.transpose(0, 1)+ else:+ data[name] = array[0]else:- data[name] = array[0]+ data[name] = arrayif self.preprocess is not None:data = self.preprocess(uid, data)