How to create SRT and VTT subtitles from text
Short answer: paste your script into Text to Speech, pick a voice and press Generate Audio. Every generation comes with two subtitle files, SRT and VTT, timed to the generated speech word by word. Download them next to the audio.
Step by step
- Choose the Voice Language that matches your script, then a voice.
- Paste or import your text (up to 5,000 characters). End sentences with punctuation: each sentence becomes its own caption.
- Optionally add pauses with
[break:500ms]or[break:2s]. Pauses show up as gaps between captions. - Press Generate Audio.
- In the result, download the audio and the ⬇ SRT or ⬇ VTT file.
What the files look like
This is the real output for the script Welcome to the course. In this lesson, you will learn how subtitles are timed. Each cue follows the speech, word by word.
with the voice Aria (US):
SRT
1 00:00:00,100 --> 00:00:01,300 Welcome to the course. 2 00:00:02,162 --> 00:00:05,125 In this lesson, you will learn how subtitles are timed. 3 00:00:05,988 --> 00:00:08,662 Each cue follows the speech, word by word.
VTT
WEBVTT 00:00:00.100 --> 00:00:01.300 Welcome to the course. 00:00:02.162 --> 00:00:05.125 In this lesson, you will learn how subtitles are timed. 00:00:05.988 --> 00:00:08.662 Each cue follows the speech, word by word.
How the captions are built
Captions are built from the word timings the speech engine reports, so each one starts with its first spoken word and ends with its last.
- Splitting: a new caption starts after a sentence ends (
.!?and their CJK forms) or after ten words, whichever comes first. Common abbreviations such as "Dr." do not end a caption. - Text: captions keep your original punctuation, and Chinese or Japanese text is joined without extra spaces.
- Pause markers: never appear in the captions; they only widen the gap between two captions.
Should you use SRT or VTT?
SRT and VTT contain the same captions and timings; they differ only in layout and in where they are used.
Use SRT for video editors and upload sites, and VTT for captions in a web page's video player (the HTML <track> element).
| SRT (.srt) | VTT (.vtt) | |
|---|---|---|
| First line | Caption number | WEBVTT header |
| Time format | 00:00:01,300 (comma) | 00:00:01.300 (full stop) |
| Typical use | Video editors, media players, video platforms | HTML5 video on web pages (<track>) |
Using the files
- Web page:
<video src="voiceover.mp4" controls><track kind="captions" src="subtitles.vtt" srclang="en" label="English" default></video> - Video platforms and editors: most accept an SRT upload as a caption track; use the file from the same generation as the audio you place on the timeline.
- Media players: load the SRT next to the video file; many players pick it up automatically when it has the same file name.
Troubleshooting
- Captions drift: use the subtitle file from the same generation as the audio. A new generation, even of the same text, can be timed slightly differently.
- A caption is too long: add sentence punctuation; captions break at sentence ends and after ten words.
- Nothing was generated: check that the Voice Language matches the language of your text.
More fixes are in the help centre; the voiceover guide covers the whole script-to-video workflow.
Last updated: