IOriens / whisper-video

Generate subtitles for all the videos in a folder with OpenAI's Whisper privately in your computer.
MIT License
23 stars 3 forks source link

How to segment into short SRT text segments? #1

Open ariestav opened 2 months ago

ariestav commented 2 months ago

Hello! Great tool, thank you for making it. I successfully ran a batch on a folder and everything worked great. However, after some adjustments made to text_chunk_size and max_chunk configuration params, the SRT outputs are all the same. I tried changing the defaults found in the repo from 14500 and 2 to 14 and 1 respectively. The SRT outputs are segmented the same. Is there any way to adjust the amount of segments the SRT is broken down into?

Many thanks for your time!

ariestav commented 2 months ago

I issued a pull request for this. Seems to work.