# Iterate through paragraphs for para in doc.paragraphs: text = para.text # Assume a 1-minute timestamp increment per paragraph timestamp = f"00:00:timedelta(minutes=len(doc.paragraphs))" srt_file.write(f"timestamp --> timestamp\ntext\n\n")
Since no time data exists, the system applies the algorithm or an Intelligent Punctuation Model . doc to srt
To ensure your SRT file works perfectly, keep these tips in mind during the "Doc" phase: # Iterate through paragraphs for para in doc