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

Bug - "No active speech found in audio results" #997

Open
asusdisciple opened this issue Sep 9, 2024 · 1 comment
Open

Bug - "No active speech found in audio results" #997

asusdisciple opened this issue Sep 9, 2024 · 1 comment

Comments

@asusdisciple
Copy link

So if the VAD does not find any audios it return an empty array and prints
the message "No active speech found in audio results". So far so good.

But next fast-whisper runs into an error which I can not catch outside of the package because in line 523 in transcribe.py you use a torch.stack() which expects a non empty TensorList.

The expected behaviour should be that fast-whisper just returns an empty string if it does not find any speech in an audio.

The problematic code section is in the vad models merge_chunks function:

    if len(segments_list) == 0:
        print("No active speech found in audio")
        return []
@MahmoudAshraf97
Copy link
Contributor

Its fixed 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

No branches or pull requests

2 participants