Skip to content

fix(vad): keep speech at the minimum duration - #1720

Closed
nemo-crypto wants to merge 1 commit into
SYSTRAN:masterfrom
nemo-crypto:fix/vad-minimum-duration-boundary
Closed

nemo-crypto wants to merge 1 commit into
SYSTRAN:masterfrom
nemo-crypto:fix/vad-minimum-duration-boundary

Conversation

@nemo-crypto

Copy link
Copy Markdown

Closes #1719.

Accept regular speech chunks at the configured minimum duration. Retain a one-sample floor so a zero minimum cannot emit a zero-length chunk.

The four focused VAD tests cover equality at a silence boundary, equality at the end of input, a chunk one sample below the threshold, and zero-length audio with a zero minimum. Both equality tests failed before the change. All four passed with the real NumPy processing and a deterministic VAD probability stub; no model weights were needed for this focused check.

Prepared with AI assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VAD drops speech at exactly min_speech_duration_ms

2 participants