Nyquist Limit, Sample Rate & Aliasing Explained | Rohan

Rohan Vijaykumar explains how digital audio stores discrete snapshots, why the Nyquist frequency caps what a sample rate can capture, and why upsampling cannot recover pitches never actually sampled.

3:05 video3 min readWatch on YouTube

Rohan Vijaykumar of Humanitarians AI explains why digital audio is not a continuous recording of sound but a list of discrete snapshots, and what that distinction costs you if you ignore it. The video works through sample rate, the Nyquist limit, and the specific failure mode called aliasing, where a pitch too high for the sample rate gets recorded as a different, lower pitch instead of simply disappearing.

Digital audio is snapshots, not a wave

A microphone picks up a continuous wiggle of air pressure, but a computer cannot store a continuous signal. It stores a number, waits, then stores another. Sample rate is how many of those numbers get taken each second. 44,100 times a second is the compact disc default. Every one of those measurements is a single point, not a smooth curve, and the smooth curve you see on a waveform display is a reconstruction built from those points, not a recording of the original wave itself.

The Nyquist frequency sets a hard ceiling

Two numbers matter here, and mixing them up is the trap. Sample rate is how often you measure the air. The Nyquist frequency is the highest pitch those measurements can uniquely capture, and it is always half the sample rate. A compact disc sampling at 44,100 hertz can uniquely represent pitches up to 22,050 hertz, which sits near the top of human hearing. Speech tools often sample at 16,000 hertz, giving them a Nyquist ceiling of just 8,000 hertz. Anything above that ceiling in the original sound is either lost or, worse, folded down into the wrong place.

When under-sampling turns a high pitch into a fake low one

You need more than two samples per cycle of a given pitch to capture it uniquely. Sample below that threshold and the reconstructed curve is not a rough guess at the true wave, it is the unique wave that those sparse dots could actually belong to, and that wave is a slower, lower-pitched signal than what was really there. This is aliasing: a high pitch stored as a fake low pitch. A spectrogram of an aliased file will show energy sitting in the wrong place entirely, because the true high-frequency content was never captured to begin with, not just recorded poorly.

Upsampling does not undo a low sample rate

A common mistake is treating a higher sample rate as something that can be added back in after the fact. Stretching an existing list of samples, or upsampling a 16 kHz voice recording to a higher rate, does not invent the missing cycles that were never captured the first time. Recording at 192 kHz is not automatically better either, if the original source was already band-limited below what a lower rate could have captured. The sample rate you record at is the only thing that determines what frequencies are actually stored; nothing downstream can add that information back once it is gone.

Key takeaways

  • Digital audio is a series of discrete numeric snapshots, not a continuous recording of the sound wave.
  • Sample rate is how often you measure; the Nyquist frequency, always half the sample rate, is the highest pitch you can uniquely capture.
  • A compact disc at 44,100 Hz has a Nyquist ceiling near 22,050 Hz; a 16,000 Hz speech tool caps out at 8,000 Hz.
  • Sampling a pitch too fast for its cycle produces aliasing, where the high pitch is recorded as a different, lower pitch rather than lost cleanly.
  • Upsampling after the fact cannot recover frequencies that the original sample rate never captured.

Who this is for

Anyone working with audio, speech, or signal data who needs a working grasp of sample rate and the Nyquist limit before choosing a recording rate or diagnosing why a recording sounds off, especially developers picking a sample rate for a speech tool or debugging unexpected pitch artifacts in a spectrogram.

Chapters

  1. 0:00Digital audio: Snapshots vs continuous waves
  2. 0:15Understanding sample rates (CD default vs speech tools)
  3. 0:30The Nyquist frequency limit
  4. 0:50Under-sampling and the trap of aliasing
  5. 1:10The upsampling myth
  6. 1:30Python sampling exercise in Claude
Full transcript(auto-generated, with timestamps)

Digital audio: Snapshots vs continuous waves

[0:00]Hi, this is Rohan VJkumar from humanitarians. A I digital audio is not a continuous wave. It is a list of snapshots. Today I will teach you sample rate, the Nyquist limit and the trap called aliasing. A high pitch that

Understanding sample rates (CD default vs speech tools)

[0:16]Pretends to be a low one. Two numbers, one trap. Sample rate is how often you measure the air. Nyquist is the highest pitch those measurements can uniquely catch. You need more than two samples per cycle of that pitch. Go slower and

The Nyquist frequency limit

[0:31]The picture lies. A microphone sees a continuous wiggle of air pressure. A computer does not. It stores a number, waits, stores another. Sample rate is how many of those numbers you take each second. 44,100 times a second is the compact disc default. Each terracotta

Under-sampling and the trap of aliasing

[0:51]Dot is one measurement. I am going to ask Claude to draw the honest test. A clean sign. Enough dots, then the same sign with too few dots. So you can watch a high pitch fold. Watch the ask then the result. When you take more than two samples per cycle, the original wiggle comes back. The terracotta curve is not

The upsampling myth

[1:11]A guess. It is the unique sign those dots can belong to. This is the sampling theorem in one picture. Enough measurements and the pitch is recoverable. The ceiling has a name. Nyquist frequency is sample rate divided by two. A compact disc at 44,100 htz can uniquely hold pitches up to 22,50 hertz,

Python sampling exercise in Claude

[1:33]Which is about the top of human hearing. Speech tools often sit at 16,000 hertz. Their ceiling is 8,000. Sibilance above that is gone or folded, now under sample. The true wave is fast. The dots are too sparse. Join the dots and you get a slow terracotta lie. That lie is an alias. A high pitch stored as a fake low one. A spectrogram of this file will show energy in the wrong place. The high pitch was never kept. Use Nyquis to choose a sample rate, to read the top of a spectrogram, and to catch a fake high. Do not upsample a 16 kHz voice note and claim you restored symbols. Stretching the list does not invent the missing

Cycles. And do not treat 192 kHz as magic. If the source was already ban limited, remember the split. Sample rate is how often you measure. Nyquist is half of that. Use it to know which pitches can be stored. Do not hand extra zeros the job of restoring air that was never sampled. Your turn. Paste this into clawed in Python. Sample a 2000Hz sign at 8,000 hertz, then at 30,000 hertz. Plot both. Tell me which plot is an alias and what Nyquist frequency each sample rate allowed. Then repeat on a clip of your own. Look for a pitch that moved down when you slowed the sample rate. Sample rate and the Nyquist limit. Rohan Vjkumar Lyrical Literacy. Humanitarians AI.

More from Humanitarians AI Fellows

Humanitarians AI Lyrical Literacy Project