pengzhendong / pyannote-onnx

ONNX Inference of Pyannote Segmentation

Repository from Github https://github.compengzhendong/pyannote-onnxRepository from Github https://github.compengzhendong/pyannote-onnx

Limit to 30s

thewh1teagle opened this issue · comments

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?