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
嘉渊ce2f775f445c
diff --git a/funasr/layers/global_mvn.py b/funasr/layers/global_mvn.pyindex 11c459df5..8e43582a4 100644--- a/funasr/layers/global_mvn.py+++ b/funasr/layers/global_mvn.py@@ -7,12 +7,13 @@ import torchfrom typeguard import check_argument_typesfrom funasr.modules.nets_utils import make_pad_mask+from funasr.layers.abs_normalize import AbsNormalize+from funasr.layers.inversible_interface import InversibleInterface-class GlobalMVN(torch.nn.Module):- """Apply global mean and variance normalization+class GlobalMVN(AbsNormalize, InversibleInterface):+ """Apply global mean and variance normalizationTODO(kamo): Make this class portable somehow-Args:stats_file: npy filenorm_means: Apply mean normalization@@ -63,7 +64,6 @@ class GlobalMVN(torch.nn.Module):self, x: torch.Tensor, ilens: torch.Tensor = None) -> Tuple[torch.Tensor, torch.Tensor]:"""Forward function-Args:x: (B, L, ...)ilens: (B,)@@ -115,4 +115,4 @@ class GlobalMVN(torch.nn.Module):if norm_means:x += self.meanx.masked_fill_(make_pad_mask(ilens, x, 1), 0.0)- return x, ilens+ return x, ilens\ No newline at end of file