Design Voice Message Recording, Upload, and Playback for WhatsApp

Last updated: November 29, 2026

Quick Overview

Design WhatsApp voice messages end to end: recording on the phone, encoding, uploading encrypted audio, delivering it to a chat or group, and playing it back with a waveform and speed control.

Meta
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design WhatsApp voice messages end to end: recording on the phone, encoding, uploading encrypted audio, delivering it to a chat or group, and playing it back with a waveform and speed control.

Voice notes are hugely popular on WhatsApp, often on low-end phones and slow networks. The interviewer checks sensible codec choices, encrypted media upload separated from the message, and practical concerns like starting upload while recording.

What the Interviewer Expects
  • Choose a codec and bitrate for speech
  • Upload encrypted media separately from the message
  • Start uploading while the user is still recording
  • Send the waveform and duration in the message for instant rendering
  • Handle download, caching, and playback speed
Key Topics to Cover
Audio codecs
End-to-end encryption
Media upload
Streaming upload
Caching
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 keep the server from listening to voice notes?
  • How does forwarding a voice note to another group work without re-uploading?
  • What happens if the network drops mid-recording?
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: hold to record, release to send; recipients see duration and waveform immediately and can play at 1x, 1.5x, 2x; works in groups; forwardable.

Non-functional: end-to-end encrypted,...

High-Level Design
  • Encode speech with Opus at a low bitrate (around 16 to 32 kbps mono), which gives good speech quality: one minute is roughly 120 to 240 KB.
  • Encryption: the client generates a random media ...

Submit Your Answer
Markdown supported