Skip to content

Conversation

danbev
Copy link
Member

@danbev danbev commented May 15, 2025

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.

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.
@danbev danbev merged commit d1f114d into ggml-org:master May 16, 2025
53 checks passed
@danbev danbev deleted the vad-return-early branch May 22, 2025 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants