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
嘉渊87da7393041a
diff --git a/funasr/models/e2e_asr.py b/funasr/models/e2e_asr.pyindex 950d69960..d3d5dfdc6 100644--- a/funasr/models/e2e_asr.py+++ b/funasr/models/e2e_asr.py@@ -17,9 +17,8 @@ from funasr.losses.label_smoothing_loss import (LabelSmoothingLoss, # noqa: H301)from funasr.models.ctc import CTC+from funasr.models.encoder.abs_encoder import AbsEncoderfrom funasr.models.decoder.abs_decoder import AbsDecoder-from funasr.models.postencoder.abs_postencoder import AbsPostEncoder-from funasr.models.preencoder.abs_preencoder import AbsPreEncoderfrom funasr.models.base_model import FunASRModelfrom funasr.modules.add_sos_eos import add_sos_eosfrom funasr.modules.e2e_asr_common import ErrorCalculator@@ -45,9 +44,7 @@ class ESPnetASRModel(FunASRModel):frontend: Optional[torch.nn.Module],specaug: Optional[torch.nn.Module],normalize: Optional[torch.nn.Module],- preencoder: Optional[AbsPreEncoder],- encoder: torch.nn.Module,- postencoder: Optional[AbsPostEncoder],+ encoder: AbsEncoder,decoder: AbsDecoder,ctc: CTC,ctc_weight: float = 0.5,