Closed ghost closed 5 years ago
Could you please elaborate? Lines in the text file or the .srt file? What is the problem you are running into?
So the way I have it set up it to be able to limit the lines by words. If you look in format_response.py, there is a formula I use called chunks(). I wrote this formula because most lines more than 14 words long led to subtitles being more than two lines long, causing them to block images in the video. You could reduce the word count if this is the same problem you are running into.
If you are looking to limit by characters specifically you would need to write a formula similar to chunks() which uses character count instead of word count and apply it accordingly.
Is there a way to limit the lines by characters?