1 00:00:01,000 --> 00:00:05,000 Hello, welcome to this video.
Change the file extension from .txt to (e.g., mysubtitles.srt ). how to convert txt to srt file
A subtitle should stay on screen long enough to read. The standard formula: 1 00:00:01,000 --> 00:00:05,000 Hello, welcome to this
Hello there. How are you doing today? I am fine, thanks. how to convert txt to srt file
if == " main ": txt_to_srt("input.txt", "output.srt", duration_sec=3)