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

Limit to 30s #8

Open
thewh1teagle opened this issue Sep 17, 2024 · 1 comment
Open

Limit to 30s #8

thewh1teagle opened this issue Sep 17, 2024 · 1 comment

Comments

@thewh1teagle
Copy link

I'm using pyannote-onnx in conjunction with whisper.cpp, and I'm encountering an issue where whisper.cpp expects audio clips to be no longer than 30 seconds. However, pyannote sometimes detects speech longer than 30 seconds.

I tried splitting the speech chunks that exceed 30 seconds, but this sometimes results in cuts right in the middle of spoken words. How can I handle this more effectively to ensure that each audio segment is at most 30 seconds without splitting words awkwardly?

@pengzhendong
Copy link
Owner

Hello, perhaps you could consider employing some rules such as silero-vad.

https://github.com/snakers4/silero-vad/blob/1d48167271d1ba3517107527f09063fdf374707b/src/silero_vad/utils_vad.py#L218-L230

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