Design Automatic Caption Generation for Newly Uploaded Reels
Last updated: November 29, 2026
Quick Overview
Design the pipeline that generates speech captions for every Reel after upload, in the spoken language, available to viewers soon after publishing and editable by the creator.
Meta
November 29, 20260
0
0 solved
Design the pipeline that generates speech captions for every Reel after upload, in the spoken language, available to viewers soon after publishing and editable by the creator.
Captions improve accessibility and watch time, especially since many people watch Reels muted. The interviewer looks for a pipeline that handles audio extraction, language identification, speech recognition on GPUs, timing alignment, and editing, and that prioritizes fresh, high-reach content.
What the Interviewer Expects
- Extract audio and detect whether there is speech
- Identify language and route to the right model
- Batch ASR inference on GPUs with priority
- Produce timed caption segments and store them
- Let creators edit and keep versions
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 handle music-only Reels?
- What if the language detector is wrong?
- How do you prioritize when GPUs are saturated?
- How would you translate captions for other viewers?
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 Reel, produce captions (text plus start and end times) in the spoken language; show them when the viewer enables captions or by default when muted; creator can review and edit...
High-Level Design
- Upload completes and emits
reel_uploaded. - Audio extraction job pulls the audio track, downmixes to mono 16 kHz.
- Voice activity detection (cheap, CPU) finds speech segments; if speec...