Design Automatic Caption Generation for Uploaded YouTube Videos
Last updated: November 29, 2026
Quick Overview
Design the pipeline that generates automatic captions for every newly uploaded YouTube video, in the spoken language, and makes them available on the watch page and for auto-translation, prioritizing popular videos.
0
0
0 solved
Design the pipeline that generates automatic captions for every newly uploaded YouTube video, in the spoken language, and makes them available on the watch page and for auto-translation, prioritizing popular videos.
YouTube auto-captions run on an enormous upload volume, so the systems question is less about the speech model and more about scheduling GPU or TPU work, prioritization, segmenting long audio, and storing timed text. Google interviewers check cost reasoning and how the pipeline hooks into upload processing.
What the Interviewer Expects
- Trigger from the upload processing pipeline with extracted audio
- Detect language, then segment audio for parallel recognition
- Schedule accelerator jobs with priority by expected views
- Store timed caption tracks with versions and serve them via the player
- Handle creator edits and caption quality signals
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you caption a 10-hour livestream archive cost-effectively?
- How do you choose which videos get the larger, more accurate model?
- How do you handle music videos with little speech?
- How would you measure caption quality without human transcripts for every video?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: for each upload, extract audio, detect spoken language, run speech recognition, produce a timed caption track (WebVTT-like), publish it; creators can edit; auto-translate builds on it....
High-Level Design
- Upload pipeline emits
audio_ready(video_id, audio_uri, duration, channel signals)after transcoding. - Language ID service: small model on the first minutes of audio.
- Scheduler: prio...