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
speech_asr4012630708cd
diff --git a/funasr/datasets/small_datasets/build_loader.py b/funasr/datasets/small_datasets/build_loader.pyindex 012113f28..6727602dc 100644--- a/funasr/datasets/small_datasets/build_loader.py+++ b/funasr/datasets/small_datasets/build_loader.py@@ -1,16 +1,15 @@import torchfrom funasr.datasets.small_datasets.dataset import ESPnetDataset-from funasr.datasets.small_datasets.build_preprocess import build_preprocess+from funasr.datasets.small_datasets.preprocessor import build_preprocess-def build_dataloader(args):- if args.frontend_conf is not None:- dest_sample_rate = args.frontend_conf["fs"] if (args.frontend_conf is not None and "fs" in args.frontend_conf) else 16000- preprocess_fn = build_preprocess()+def build_dataloader(args, train=False):+ preprocess_fn = build_preprocess(args, train=train)+ dest_sample_rate = args.frontend_conf["fs"] if (args.frontend_conf is not None and "fs" in args.frontend_conf) else 16000dataset = ESPnetDataset(iter_options.data_path_and_name_and_type,float_dtype=args.train_dtype,preprocess=preprocess_fn,- max_cache_size=iter_options.max_cache_size,- max_cache_fd=iter_options.max_cache_fd,+ max_cache_size=args.max_cache_size,+ max_cache_fd=args.max_cache_fd,dest_sample_rate=dest_sample_rate,)