ricky0123 / vad

Voice activity detector (VAD) for the browser with a simple API
https://www.vad.ricky0123.com
Other
920 stars 146 forks source link

Max segment duration #79

Open AmgadHasan opened 10 months ago

AmgadHasan commented 10 months ago

Is there a way to limit the duration of the segments produced by VAD? Sometimes I get segments that are relatively long (50s-60s). Is there a way to get each of these segments to be multiple shorter segments ?

I'm talking about something like this https://github.com/snakers4/silero-vad/blob/94504ece54c8caeebb808410b08ae55ee82dba82/utils_vad.py#L197

kyb3r commented 9 months ago

This is possible to do, you'll have to adjust the algorithm in the FrameProcessor