]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
whisper : add stateless VAD detect + explicit state reset for streaming (#3677)
authorDaniel Worthington-Bodart <redacted>
Fri, 17 Apr 2026 11:36:27 +0000 (12:36 +0100)
committerGitHub <redacted>
Fri, 17 Apr 2026 11:36:27 +0000 (13:36 +0200)
commit166c20b473d5f4d04052e699f992f625ea2a2fdd
tree1906b82ac1b153694d62be08513a2677ca4e722d
parent95ea8f9bfb03a15db08a8989966fd1ae3361e20d
whisper : add stateless VAD detect + explicit state reset for streaming (#3677)

whisper_vad_detect_speech resets LSTM state on every call, which is
correct for batch processing but prevents temporal continuity when
calling per-chunk in a streaming loop.

Add whisper_vad_detect_speech_no_reset (skips buffer clear) and
whisper_vad_reset_state (explicit clear between utterances).
Existing whisper_vad_detect_speech is now a thin wrapper — zero
behavior change for current callers.

Co-authored-by: Claude Opus 4.6 (1M context) <redacted>
include/whisper.h
src/whisper.cpp