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

Return empty generator when no active speech in transcribe #973

Closed
wants to merge 5 commits into from

Conversation

kenho211
Copy link

To fix
/lib/python3.10/site-packages/faster_whisper/transcribe.py", line 523, in transcribe features = torch.stack( RuntimeError: stack expects a non-empty TensorList

when there is no active speech, i.e. vad_segments after merge_chunks is empty.

@hobodrifterdavid
Copy link

I was getting errors thrown when processing some audio files with the latest commit, reverted back, now it's okay:

image

I think that was the error, I guess this is the fix?

@MahmoudAshraf97
Copy link
Collaborator

it was fixed already in #936

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.

3 participants