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
嘉渊0237e3262522
diff --git a/egs/aishell/paraformer/run.sh b/egs/aishell/paraformer/run.shindex 65fbbfcff..d8a1c0958 100755--- a/egs/aishell/paraformer/run.sh+++ b/egs/aishell/paraformer/run.sh@@ -3,8 +3,8 @@. ./path.sh || exit 1;# machines configuration-CUDA_VISIBLE_DEVICES="0"-gpu_num=1+CUDA_VISIBLE_DEVICES="0,1"+gpu_num=2count=1gpu_inference=true # Whether to perform gpu decoding, set false for cpu decoding# for gpu decoding, inference_nj=ngpu*njob; for cpu decoding, inference_nj=njobdiff --git a/funasr/datasets/small_datasets/dataset.py b/funasr/datasets/small_datasets/dataset.pyindex a6c678aee..33b9276bf 100644--- a/funasr/datasets/small_datasets/dataset.py+++ b/funasr/datasets/small_datasets/dataset.py@@ -111,6 +111,7 @@ class ESPnetDataset(Dataset):int_dtype: str = "long",dest_sample_rate: int = 16000,speed_perturb: tuple = None,+ mode: str = "train",):assert check_argument_types()if len(path_name_type_list) == 0:@@ -125,6 +126,7 @@ class ESPnetDataset(Dataset):self.int_dtype = int_dtypeself.dest_sample_rate = dest_sample_rateself.speed_perturb = speed_perturb+ self.mode = modeself.loader_dict = {}self.debug_info = {}@@ -148,7 +150,8 @@ class ESPnetDataset(Dataset):loader_type: loader_type. sound, npy, text, etc"""if loader_type == "sound":- loader = SoundScpReader(path, self.dest_sample_rate, normalize=True, always_2d=False, speed_perturb=self.speed_perturb)+ speed_perturb = self.speed_perturb if self.mode == "train" else None+ loader = SoundScpReader(path, self.dest_sample_rate, normalize=True, always_2d=False, speed_perturb=speed_perturb)return AdapterForSoundScpReader(loader, self.float_dtype)elif loader_type == "kaldi_ark":loader = kaldiio.load_scp(path)