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 asr_inference_paraformer_streaming.py
hnluo6abf68388ce8
diff --git a/funasr/bin/asr_inference_paraformer_streaming.py b/funasr/bin/asr_inference_paraformer_streaming.pyindex 939ffe99f..63ef3a34a 100644--- a/funasr/bin/asr_inference_paraformer_streaming.py+++ b/funasr/bin/asr_inference_paraformer_streaming.py@@ -202,9 +202,9 @@ class Speech2Text:assert check_argument_types()results = []cache_en = cache["encoder"]- if speech.shape[1] < 16 * 60 and cache["is_final"]:- cache["last_chunk"] = True- feats = cache["feats"]+ if speech.shape[1] < 16 * 60 and cache_en["is_final"]:+ cache_en["last_chunk"] = True+ feats = cache_en["feats"]feats_len = torch.tensor([feats.shape[1]])else:if self.frontend is not None: