]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
vad : return early if no vad segments are detected (#3158)
authorDaniel Bevenius <redacted>
Fri, 16 May 2025 06:50:53 +0000 (08:50 +0200)
committerGitHub <redacted>
Fri, 16 May 2025 06:50:53 +0000 (08:50 +0200)
commitd1f114da61b1ae1e70b03104fad42c9dd666feeb
tree3237559b96688691bfc4f2ca5f5828090ac4c751
parentbae5d074c7b050855f904059b10f69e44e712574
vad : return early if no vad segments are detected (#3158)

This commit adds a check to `whisper_full_with_state` and if no VAD
segments are detected, the function will return early.

The motivation for this is that if no VAD segments are detected, the
function will not have any samples to process which can happen if an
audio sample does not contain any speech. I did not test this previously
and only discovered this when updating the stream example.
src/whisper.cpp