Transcript Cleaner: SRT/VTT Subtitles to Text & RAG Chunks
Pricing
$1.00 / 1,000 transcript cleaneds
Transcript Cleaner: SRT/VTT Subtitles to Text & RAG Chunks
Clean SRT, VTT and transcript text: remove timestamps, fillers (um, uh), speaker labels, [Music] tags and repeated YouTube caption lines. Get clean text, paragraphs or RAG chunks with token limit, overlap and timestamps. Reads transcript scraper datasets. $1 per 1,000.
Pricing
$1.00 / 1,000 transcript cleaneds
Rating
0.0
(0)
Developer
Open Data Tools
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
24 days ago
Last modified
Categories
Features
Share
Turn messy transcripts and subtitle files into clean text you can read, search, summarize or embed. This transcript cleaner takes SRT and VTT subtitle files, YouTube "Show transcript" copies, Otter, Rev, Zoom and Teams exports, Whisper or AssemblyAI JSON, or the dataset of any YouTube, TikTok, Loom or podcast transcript scraper, and gives back clean text, paragraphs, or token-limited RAG chunks with start and end times.
What it removes:
- Timestamps and cue numbers (
00:01:23,456 --> 00:01:25,000,[00:12],0:03lines) - Repeated caption lines: YouTube auto-captions and live captions repeat every line in the next cue, so a raw
.vttreads "hello everyone hello everyone and welcome". This keeps one copy of each line. - Filler words: um, uh, erm, ah, hmm, plus any words or phrases you add ("you know", "I mean"). Commas and capital letters around them are fixed.
- Speaker labels:
Name:,Speaker 1 (00:00:05):, Otter headers, VTT<v Name>tags and YouTube>>marks. Or keep them once per speaker turn. - Sound tags:
[Music],[Applause],(laughs),[inaudible],♪ lyrics ♪ - Markup:
<i>,<font>, karaoke word timings<00:00:01.000><c>,{\an8}tags, HTML entities like&#39; - Stutters: "the the" becomes "the"
What you get:
- Document mode: one row per transcript with the clean text, paragraphs (with start time and speaker), word and token counts, and what was removed
- Chunks mode: one row per chunk for RAG and embeddings, with a token limit you set (cl100k_base or o200k_base), overlap, chunk index, a stable
chunkIdfor upserts, start/end time, and for YouTube sources a link that opens the video at that moment - A clean .txt file per transcript in the run's key-value store
What people use it for
- RAG and AI search over videos and podcasts: run a YouTube transcript scraper, point this Actor at its dataset, and load the chunks into Pinecone, Qdrant, Weaviate or pgvector. Each chunk carries its timestamp link, so answers can cite the exact moment.
- Readable transcripts from
.srtor.vttfiles: meeting notes, interview write-ups, blog posts, show notes, course material - LLM prompts: strip timestamps and repeats before sending a transcript to GPT or Claude, so you pay for fewer tokens (a raw YouTube auto-caption VTT repeats every line, so it is more than twice as long as the clean text)
- Subtitle to text for translation, search indexing or accessibility checks
How it works
- Give it any mix of inputs: file links (
.srt,.vtt,.txt,.json; Google Drive, Dropbox and GitHub share links work), pasted text, or a dataset ID from another Actor run. - The format is detected for you. For datasets, the transcript field is found automatically:
transcript,data,timestamped,transcript_json,captions,segments,utterances,srt,vtt,textand more. If it guesses wrong, set Transcript field. - Each transcript is cleaned, then split into paragraphs at speaker changes, pauses and every ~120 words at a sentence end.
- In chunks mode the text is cut into chunks of at most N tokens, ending at a sentence where possible, with the overlap you choose.
It never visits YouTube or any other site on your behalf. It only reads the files and datasets you give it.
Use it after a transcript scraper
- Once: copy the dataset ID from the scraper run's Storage tab into Dataset ID.
- Automatically: on the scraper's task, add an Actor-to-Actor integration with this Actor and set
"datasetId": "{{resource.defaultDatasetId}}"in its input. Every finished scraper run is then cleaned and chunked.
This Actor runs with limited permissions. It can read only the dataset you pick or name in Dataset ID, nothing else in your account.
Input example
{"transcriptUrls": ["https://durian.blender.org/wp-content/content/subtitles/sintel_en.srt"],"datasetId": "","outputMode": "chunks","chunkTokens": 500,"chunkOverlapTokens": 50,"tokenizer": "cl100k_base","removeFillers": true,"extraFillers": ["you know"],"speakerLabels": "remove"}
Output example
Chunks mode, one row per chunk:
{"status": "ok","source": "https://www.youtube.com/watch?v=VIDEO_ID","sourceType": "dataset","title": "How retrieval works","docId": "3f1c0a9b2d4e","chunkIndex": 3,"chunkCount": 12,"chunkId": "3f1c0a9b2d4e-0003","text": "So the retriever looks at the question first. It pulls the five closest chunks...","tokens": 487,"words": 371,"startSeconds": 412.5,"endSeconds": 538.1,"startTime": "00:06:52","endTime": "00:08:58","timestampUrl": "https://www.youtube.com/watch?v=VIDEO_ID&t=412s","metadata": { "channel_name": "...", "language": "en" },"cleanTextUrl": "https://api.apify.com/v2/key-value-stores/.../records/clean-0000-3f1c0a9b2d4e.txt"}
Document mode, one row per transcript:
{"status": "ok","source": "https://durian.blender.org/wp-content/content/subtitles/sintel_en.srt","format": "srt","text": "This blade has a dark past. It has shed much innocent blood.\n\nYou're a fool for traveling alone...","paragraphs": [{ "text": "This blade has a dark past. It has shed much innocent blood.", "startTime": "00:01:47", "startSeconds": 107.25 }],"paragraphCount": 7,"wordCount": 110,"tokenCount": 164,"originalWordCount": 110,"removedPercent": 0,"durationSeconds": 630,"removed": { "markup": 0, "soundTags": 0, "speakerLabels": 0, "fillers": 0, "duplicateLines": 0, "duplicateWords": 0, "stutters": 0 }}
Inputs that fail (a dead link, a web page instead of a file, a scraper item that has no transcript) get a row with status: "error" and the reason. They are not charged.
Pricing
Pay per event, $0.001 per cleaned transcript ($1 per 1,000), no start fee. The price is the same in document and chunks mode, however many chunks a transcript makes. Failed inputs are free. Apify platform usage is billed by Apify as usual; this Actor needs only 256 MB and finishes most transcripts in well under a second.
Limits and notes
- Files up to 25 MB each. UTF-8, UTF-16 and Windows-1252 subtitle files are read correctly.
- Fillers are English by default. Turn Remove filler words off for other languages and add your own list.
- It does not add punctuation. YouTube auto-captions have none, so their clean text has none either; paragraphs then break at pauses.
- Repeated short lines are dropped only in rolling captions. In film and TV subtitles a repeated "No!" is kept, because it is dialogue.
- Token counts use OpenAI's tokenizers (via js-tiktoken). Other models count a little differently, so leave some headroom.
- Word times inside a cue are spread evenly across the cue, so chunk times are accurate to the cue, usually a few seconds.
FAQ
Can it get the transcript of a YouTube video for me? No. Use any YouTube transcript scraper in the Store, then give this Actor that run's dataset ID.
How do I convert SRT to text? Paste the SRT or add its link, keep Output on Document, and run. The clean text is in the text field and in the .txt file.
Which chunk size should I use? 300-800 tokens with 10-15% overlap works for most embedding models. Use o200k_base if you count tokens for GPT-4o or later.
Does it keep who said what? Set Speaker labels to Keep. Each speaker turn then starts with Name: , paragraphs break at every change, and chunks list their speakers.
Can I call it from code? Yes, with the Apify API or client like any Actor. You can also pass an array texts of strings or objects (the same shapes as dataset items).