Prompt
how to get timestamps from transcript
Latest observation
Oct 11, 2026
OpenAI APIWeb search: off
If you have a transcript, how you get timestamps depends on where the transcript came from:
1) If it already includes timestamps
Look for formats like:
[00:01:23] Hello...00:01:23 Hello...1:23 - Hello...
You can usually just extract them with:
- manually, or
- a regex / script if you want to automate it.
Example regex for common timestamp formats:
(\d{1,2}:\d{2}(?::\d{2})?)
2) If it’s a plain transcript with no timestamps
You need to align the text with the audio/video. Common ways:
A. Use an automatic transcription tool
Tools like:
- Whisper
- YouTube auto-captions
- Otter.ai
- Descript
- Google Speech-to-Text
These can generate timestamps automatically.
B. Use forced alignment
If you already have the transcript and the audio, use alignment tools such as:
- WhisperX
- Montreal Forced Aligner
- aeneas
These take your transcript + audio and return word/segment timestamps.
3) If you’re using YouTube
- Open captions/subtitles if available
- Export subtitles as
.srtor.vtt - Those files contain timestamps
4) Example: extract timestamps from an SRT file
SRT format:
1
00:00:01,000 --> 00:00:03,000
Hello there
The timestamps are the lines with -->.
If you want, I can show you:
- how to extract timestamps from a transcript file with Python, or
- how to generate timestamps from audio/video using Whisper.