A fuller explanation is being developed. Verify this concept with cited sources before relying on it.
Audio Compression and Codecs
Audio compression reduces the amount of data needed to store or transmit sound, while codecs encode and decode audio signals.
R = S × f_s × N
Explanation
Variables
| Symbol | Meaning |
|---|---|
R | Uncompressed data rate for a single-channel PCM signal, measured in bits per second (bit/s). |
S | Number of audio channels. |
f_s | Sampling frequency, measured in samples per second (Hz). |
N | Bit depth, measured in bits per sample. |
Example or application
Uncompressed stereo PCM audio sampled at 48 kHz with 16-bit samples has a data rate of 1,536,000 bits per second before file-container overhead.
Text
Audio compression reduces the data required to represent an audio signal. Lossless compression stores the audio in a form that can be reconstructed exactly, while lossy compression removes or approximates information to achieve smaller files. Lossy codecs often use properties of human hearing, such as masking, to allocate fewer bits to components that are less perceptually important. A codec is a system or algorithm used to encode and decode audio data. Common formats and codecs include FLAC for lossless compression, and AAC, MP3 and Opus for lossy compression. Compression performance is evaluated using factors such as bitrate, file size, computational complexity, latency and perceived audio quality. The best choice depends on whether exact reconstruction, low data usage or real-time communication is most important.
Key Points
Audio compression reduces storage or transmission requirements.
Lossless compression allows exact reconstruction of the encoded audio.
Lossy compression reduces data by discarding or approximating some information.
Perceptual codecs use characteristics of human hearing.
A codec performs encoding and decoding.
Bitrate, latency and sound quality are important comparison factors.
Applications
Music streaming.
Digital music downloads.
Voice and video communication.
Audio archiving.
Broadcasting and mobile media.
Common Mistakes
Assuming every compressed audio format is lossy.
Confusing a file container with the audio codec inside it.
Assuming a higher bitrate always guarantees better perceived quality across different codecs.
Confusing compression bitrate with the original PCM bit rate.
Learning Outcomes
Distinguish lossless and lossy audio compression.
Explain the role of an audio codec.
Calculate uncompressed PCM data rate.
Identify factors involved in choosing an audio format.
Practice Questions
| Question | Answer |
|---|---|
What is the difference between lossless and lossy audio compression? | Lossless compression allows exact reconstruction, while lossy compression permanently removes or approximates some information. |
What does a codec do? | It encodes and decodes audio data. |
What is the uncompressed data rate of stereo 48 kHz, 16-bit PCM audio? | 1,536,000 bits per second, or 1,536 kbit/s. |
Related Concepts
Digital Audio
Bitrate
Bit Depth
Sampling Frequency
Perceptual Coding
Sources and verification
Sources are shown as provided in the project data. Not every source has yet been independently verified. Please report errors or missing citations.
- The Art of Digital Audio by John Watkinson; Principles of Digital Audio by Ken C. Pohlmann.