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 vad_inference_online.py
凌匀2af58ee95358
diff --git a/funasr/bin/vad_inference_online.py b/funasr/bin/vad_inference_online.pyindex cee1929fb..b33d1a057 100644--- a/funasr/bin/vad_inference_online.py+++ b/funasr/bin/vad_inference_online.py@@ -96,7 +96,7 @@ class Speech2VadSegmentOnline(Speech2VadSegment):}# a. To devicebatch = to_device(batch, device=self.device)- segments, in_cache = self.vad_model(**batch)+ segments, in_cache = self.vad_model.forward_online(**batch)# in_cache.update(batch['in_cache'])# in_cache = {key: value for key, value in batch['in_cache'].items()}return fbanks, segments, in_cache