Skip to main content

How Audio Is Represented Digitally

Sound waves are captured by a microphone, which converts acoustic energy into electrical analog signals. These are fed into an ADC (Analog-to-Digital Converter) where two critical processes occur: sampling and quantization.

Sampling

1

Definition

Sampling measures the amplitude of an analog signal at regular intervals. The interval rate is expressed in Hertz (Hz). For example, 44.1 kHz means the signal is sampled 44,100 times per second.
2

Purpose

Sampling creates a series of discrete data points that approximate the continuous analog waveform.
3

Implication

The Nyquist Theorem states that the sample rate must be at least twice the highest frequency component in the audio signal. Human hearing ranges up to 20 kHz — hence the standard CD sample rate of 44.1 kHz.

Quantization

1

Definition

Quantization converts each sampled amplitude value into a digital value by assigning a numerical quantization level to each sample.
2

Purpose

The range of amplitude values is divided into discrete steps, each assigned a digital value. Bit depth determines the number of possible levels — a 16-bit system can represent 65,536 (2^16) different levels.
3

Implication

Quantization introduces a small amount of error (quantization noise) because amplitudes are rounded to the nearest level. Higher bit depths reduce this error and produce higher fidelity audio.

Terminology

Audio Encoding

Audio encoding converts audio data into a format suitable for storage, transmission, and playback — often with compression.
Audio encoding is not the same as audio format. An audio format (e.g., WAV) includes the encoding plus metadata, file headers, and container structure.

PCM Audio Representation

When audio is played, it’s typically decoded into PCM. There are two common representations: Convert between the two formats:

Audio in UponAI