Audio bit depth
Bit depth is the number of bits used to store each sample of digital audio. It sets how finely the amplitude of each sample is quantized, and so the level of the quantization noise and the dynamic range: each bit of linear PCM is worth about 6 dB.[1:1] Compact discs use 16 bits per sample;[2:1] recording and production commonly use 24.[3:1]
Quantization
Converting audio to digital form involves two steps, sampling in time and quantization in amplitude. Sampling a band-limited signal loses nothing, but quantization, which rounds each sample to a binary word of fixed length, generally degrades it; so does requantization, shortening the word length after processing.[4:1] The rounding error is usually modelled as random noise spread evenly between plus and minus half of the smallest step, the least significant bit. Dynamic range can then be defined as the highest level the system sustains without overflow minus the level of this noise floor.[1:2]
With 6 dB per bit, 16 bits give a dynamic range of 96 dB by the most common definition.[3:2] Julius Smith reckons the range of human hearing, from the threshold of hearing near 0 dB SPL to the threshold of pain near 120 dB SPL, at about 120 dB, which would call for some 20 bits. He calls this simplistic, since the least significant bit need not be equated with the threshold of hearing.[1:1]
Dither
Without dither, quantization error is a deterministic function of the signal. For simple signals, or signals comparable in size to the quantization step, it is strongly signal-dependent and audible as gross distortion and noise modulation.[4:2] Proper dither makes the quantization noise independent of the input, so that dithered quantization adds no distortion, only uncorrelated noise. Signals below the nominal dynamic range can then still be encoded: a 2012 Xiph.Org essay demonstrated a 1 kHz tone at −105 dB in 16-bit audio.[3:2] Stanley Lipshitz, Robert Wannamaker and John Vanderkooy showed that, among dithers added without later subtraction that remove signal-dependent distortion and noise modulation, triangular-probability-density dither of 2 least significant bits peak to peak adds the least total noise.[4:3] An optimal quantizer, in their terms, turns audible signal-dependent errors into benign signal-independent ones as far as possible.[4:1]
Common bit depths
- 8 bits: telephone codecs used an 8-bit μ-law format, sampled at 8 kHz.[1:3]
- 13 to 16 bits: early digital recorders. Sony's consumer PCM-1 used 13-bit nonuniform quantization and its professional PCM-1600 16 bits; Philips's early CD design used 14 bits, which it judged enough for an inaudible noise floor at 85 dB signal-to-noise ratio, before the CD standard settled on 16.[2:2][2:3][2:1]
- 16 bits: the compact disc and DAT tape, and the usual meaning of "raw" audio data in computer soundfiles.[5:1][1:4]
- 24 to 32 bits: recording, production and processing. Some converters support up to 32 bits.[3:1][1:1][5:1]
16 bits or 24
Professionals record and produce at 24 bits for headroom, a lower noise floor and convenience: with 24 bits a level can be set approximately without risking clipping if too high or added noise if too low, and the noise accumulated over the thousands of operations in a modern mix stays low.[3:1] Smith likewise notes that signal processing needs headroom and guard bits, and calls 24 fixed-point bits reasonable to work with and 32 preferable.[1:1] For distribution the case is different. The Xiph.Org essay argued that 16 bits already span the real range of hearing with room to spare, so that once music is finished there is no reason to keep more than 16 bits; 24 bits do not harm playback but do not help either.[3:1]
- ^a ^b ^c ^d ↗ js-bits ^ ↗ js-quant-noise ^ ↗ js-telephone ^ ↗ js-pcm Smith III, Julius O. (2007). Mathematics of the Discrete Fourier Transform (DFT), with Audio Applications. W3K Publishing. ISBN 978-0-9745607-4-8. https://ccrma.stanford.edu/~jos/mdft/.
- ^a ^b ↗ pk-standard ^ ↗ pk-sony ^ ↗ pk-philips Peek, Hans B. (2010-01). The Emergence of the Compact Disc. IEEE Communications Magazine. https://doi.org/10.1109/MCOM.2010.5394021 https://www.philips.com/c-dam/corporate/research/technologies/cd/The-Emergence-of-the-Compact-Disc_v2.pdf.
- ^a ^b ^c ^d ↗ xi-24bit ^a ^b ↗ xi-16bit Montgomery, Christopher (2012-03-01). 24/192 Music Downloads ...and why they make no sense. Xiph.Org. https://people.xiph.org/~xiphmont/demo/neil-young.html.
- ^a ^b ↗ lp-adc ^ ↗ lp-undithered ^ ↗ lp-tpdf Lipshitz, Stanley P.; Wannamaker, Robert A.; Vanderkooy, John (1992-05). Quantization and Dither: A Theoretical Survey. Journal of the Audio Engineering Society. https://www.aes.org/e-lib/browse.cfm?elib=7047.
- ^a ^b ↗ lc-use Library of Congress (2022-04-19). Linear Pulse Code Modulated Audio (LPCM). Sustainability of Digital Formats: Planning for Library of Congress Collections. https://www.loc.gov/preservation/digital/formats/fdd/fdd000011.shtml.
Wikidata: Q1431161