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
System Design
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
Onsite
System Design
Medium

0

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
ASR
Language identification
GPU batching
Prioritization
Caption formats
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. 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 Problems
Sample 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
  1. Upload completes and emits reel_uploaded.
  2. Audio extraction job pulls the audio track, downmixes to mono 16 kHz.
  3. Voice activity detection (cheap, CPU) finds speech segments; if speec...

Submit Your Answer
Markdown supported