Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent infinite loop for out-of-bound timestamps in clip_timestamps #2005

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jbaudanza
Copy link

I'm using the output of get_speech_timestamps in Silero VAD to produce values for clip_timestamps.

The VAD produces an end timestamp that is one-sample beyond the last found voice sample. I was converting these timestamps into seconds and passing them directly into clip_timestamps.

The problem is sometimes the end timestamp would be one sample past the end of the file. In this case, whisper would go into an infinite loop, trying to run inference on segment_size of 0.

@ryanheise
Copy link
Contributor

It looks like whisper-test has gotten stuck for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants