]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
whisper : expose internal VAD speech segments (#3916)
authorLin Xiaodong <redacted>
Wed, 1 Jul 2026 11:10:16 +0000 (19:10 +0800)
committerGitHub <redacted>
Wed, 1 Jul 2026 11:10:16 +0000 (13:10 +0200)
commit6fc7c33b4c3a2cec83e4b65abd5e96a890480375
tree6ab7e2ee2ce668ddfc20d9b4dfb153832a33d95a
parent167d225f3a7ca391d0b79c069c2a887c83232d10
whisper : expose internal VAD speech segments (#3916)

When transcribing with params.vad = true, whisper already computes the speech
segments and keeps them in the state. Expose them so callers can reuse those
boundaries (for example to align or clip subtitles to speech) instead of running
a second, separate VAD pass.

Times are on the original audio timeline in centiseconds; the count is 0 when VAD
was not used. test-vad-full.cpp checks the segments are ordered and non-empty.
include/whisper.h
src/whisper.cpp
tests/test-vad-full.cpp