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
onnx
游雁1f85cf3aa48e
diff --git a/funasr/export/models/e2e_asr_paraformer.py b/funasr/export/models/e2e_asr_paraformer.pyindex bf5ed1ea6..5424a0a94 100644--- a/funasr/export/models/e2e_asr_paraformer.py+++ b/funasr/export/models/e2e_asr_paraformer.py@@ -59,7 +59,7 @@ class Paraformer(nn.Module):enc, enc_len = self.encoder(**batch)mask = self.make_pad_mask(enc_len)[:, None, :]pre_acoustic_embeds, pre_token_length, alphas, pre_peak_index = self.predictor(enc, mask)- pre_token_length = pre_token_length.round().type(torch.int32)+ pre_token_length = pre_token_length.floor().type(torch.int32)decoder_out, _ = self.decoder(enc, enc_len, pre_acoustic_embeds, pre_token_length)decoder_out = torch.log_softmax(decoder_out, dim=-1)