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_launch.py
lingyunfly19f4fae78421
diff --git a/funasr/bin/vad_inference_launch.py b/funasr/bin/vad_inference_launch.pyindex 1f17c5bee..0878c9d58 100644--- a/funasr/bin/vad_inference_launch.py+++ b/funasr/bin/vad_inference_launch.py@@ -239,9 +239,13 @@ def inference_vad_online(ibest_writer = Nonevad_results = []- batch_in_cache = param_dict['in_cache'] if param_dict is not None else dict()- is_final = param_dict.get('is_final', False) if param_dict is not None else False- max_end_sil = param_dict.get('max_end_sil', 800) if param_dict is not None else 800+ if param_dict is None:+ param_dict = dict()+ param_dict['in_cache'] = dict()+ param_dict['is_final'] = True+ batch_in_cache = param_dict.get('in_cache', dict())+ is_final = param_dict.get('is_final', False)+ max_end_sil = param_dict.get('max_end_sil', 800)for keys, batch in loader:assert isinstance(batch, dict), type(batch)assert all(isinstance(s, str) for s in keys), keys