pyannote-onnx
pyannote-onnx copied to clipboard
Limit to 30s
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?