What Is Pulse Code Modulation (PCM) in Audio?

Pulse Code Modulation (PCM) is the foundational method used to digitally represent analog audio signals. This article explains how PCM transforms continuous, real-world sound waves into discrete binary code—the language of computers and digital media—through a three-step process: sampling, quantization, and binary encoding.

Analog sound travels as continuous acoustic waves, creating infinite variations in amplitude (loudness) and frequency (pitch) over time. Because digital systems cannot store infinite states, they must convert these continuous waveforms into finite numbers. PCM achieves this conversion through the following technical stages:

1. Sampling

Sampling captures the amplitude of an analog wave at precise, regularly spaced intervals in time. The frequency of these measurements is known as the sample rate, measured in Hertz (Hz). According to the Nyquist-Shannon sampling theorem, the sample rate must be at least twice the highest frequency intended to be recorded to accurately reconstruct the signal. For example, standard CD audio uses a sample rate of 44.1 kHz, meaning the sound wave is measured 44,100 times per second to capture audible frequencies up to roughly 22 kHz.

2. Quantization

While sampling divides the continuous wave across the horizontal axis (time), quantization divides it across the vertical axis (amplitude). Each sampled point is measured and assigned to the nearest available step on a fixed numerical scale. The precision of this scale is determined by the bit depth. A higher bit depth provides more quantization levels, allowing for more accurate measurements and a lower noise floor. For instance: * An 8-bit system offers \(2^8 = 256\) discrete amplitude levels. * A 16-bit system offers \(2^{16} = 65,536\) discrete amplitude levels. * A 24-bit system offers \(2^{24} = 16,777,216\) discrete amplitude levels.

Any difference between the actual analog voltage and the assigned quantization step is called quantization error, which manifests as low-level noise.

3. Binary Encoding

Once each sample is mapped to a discrete integer value, that number is translated directly into binary format (strings of 0s and 1s). In a 16-bit PCM system, every single sample is converted into a 16-digit binary word. These binary words are arranged sequentially into a serial digital bitstream.

The Output

The resulting binary stream represents the original sound wave purely in numeric form without any data compression. This uncompressed PCM data serves as the standard standard for high-fidelity digital audio, forming the baseline data format used in CDs, digital telephony, standard WAV files, and AIFF files, as well as the uncompressed source data for compressed formats like MP3 and AAC.