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 e2e-vad.h
zhuzizyf0bb1196656d1
diff --git a/funasr/runtime/onnxruntime/src/e2e-vad.h b/funasr/runtime/onnxruntime/src/e2e-vad.hindex e9a8293ef..d89a88950 100644--- a/funasr/runtime/onnxruntime/src/e2e-vad.h+++ b/funasr/runtime/onnxruntime/src/e2e-vad.h@@ -442,7 +442,7 @@ private:} else {data_buf_all_size += waveform.size();}- for (int offset = 0; offset < waveform.size() - frame_sample_length + 1; offset += frame_shift_length) {+ for (int offset = 0; offset + frame_sample_length -1 < waveform.size(); offset += frame_shift_length) {float sum = 0.0;for (int i = 0; i < frame_sample_length; i++) {sum += waveform[offset + i] * waveform[offset + i];