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_asr141a4737f779
diff --git a/funasr/models/frontend/wav_frontend.py b/funasr/models/frontend/wav_frontend.pyindex 4e52b90f1..6af707478 100644--- a/funasr/models/frontend/wav_frontend.py+++ b/funasr/models/frontend/wav_frontend.py@@ -6,6 +6,7 @@ import numpy as npimport torchimport torchaudio.compliance.kaldi as kaldifrom funasr.models.frontend.abs_frontend import AbsFrontend+import funasr.models.frontend.eend_ola_feature as eend_ola_featurefrom torch.nn.utils.rnn import pad_sequencefrom typeguard import check_argument_typesfrom typing import Tuple@@ -213,33 +214,18 @@ class WavFrontendMel23(AbsFrontend):def __init__(self,fs: int = 16000,- window: str = 'hamming',- n_mels: int = 80,frame_length: int = 25,frame_shift: int = 10,- filter_length_min: int = -1,- filter_length_max: int = -1,lfr_m: int = 1,lfr_n: int = 1,- dither: float = 1.0,- snip_edges: bool = True,- upsacle_samples: bool = True,):assert check_argument_types()super().__init__()self.fs = fs- self.window = window- self.n_mels = n_melsself.frame_length = frame_lengthself.frame_shift = frame_shift- self.filter_length_min = filter_length_min- self.filter_length_max = filter_length_maxself.lfr_m = lfr_mself.lfr_n = lfr_n- self.cmvn_file = cmvn_file- self.dither = dither- self.snip_edges = snip_edges- self.upsacle_samples = upsacle_samplesdef output_size(self) -> int:return self.n_mels * self.lfr_mdiff --git a/funasr/tasks/diar.py b/funasr/tasks/diar.pyindex 953ab82c8..ae7ee9b40 100644--- a/funasr/tasks/diar.py+++ b/funasr/tasks/diar.py@@ -23,6 +23,7 @@ from funasr.layers.global_mvn import GlobalMVNfrom funasr.layers.label_aggregation import LabelAggregatefrom funasr.layers.utterance_mvn import UtteranceMVNfrom funasr.models.e2e_diar_sond import DiarSondModel+from funasr.models.e2e_diar_eend_ola import DiarEENDOLAModelfrom funasr.models.encoder.abs_encoder import AbsEncoderfrom funasr.models.encoder.conformer_encoder import ConformerEncoderfrom funasr.models.encoder.data2vec_encoder import Data2VecEncoder@@ -103,6 +104,7 @@ model_choices = ClassChoices("model",classes=dict(sond=DiarSondModel,+ eend_ola=DiarEENDOLAModel,),type_check=AbsESPnetModel,default="sond",