📝 Audio compression techniques (12 MCQs)
Digital Audio Samples and Compression Requirements
Digital audio represents sound as a sequence of samples measured at regular intervals. Uncompressed pulse-code modulation can consume substantial storage and network capacity, especially for stereo or high-resolution recordings. Audio compression reduces the bit rate by coding waveform information more efficiently or by removing details that are less perceptible to human hearing. These methods support music delivery, voice calls and portable media storage.
Waveform Coding and Perceptual Audio Models
Lossless audio codecs reduce statistical redundancy while preserving the original samples. Lossy perceptual codecs use models of hearing, including masking effects, to allocate fewer bits to less audible components. Sampling frequency determines how often the waveform is measured, bit depth affects sample precision, and channel count specifies how many separate audio channels are represented.
From PCM Samples to a Compressed Audio Stream
An encoder receives sampled audio, processes blocks or frames, and generates a coded bitstream. The bitstream may be stored in a file or packetized for transport to a player. The decoder reconstructs audio samples, which are sent to a digital-to-analog converter for speaker output. Real-time systems must also manage packet timing and playback buffering.
Calculating a Basic PCM Audio Data Rate
Stereo PCM at 44,100 samples per second, 16 bits per sample and two channels requires 1,411,200 bits per second before overhead. A compressed music stream at 128 kbit/s uses far fewer bits. The smaller stream is easier to deliver, but a lossy codec may not reproduce the original samples exactly.
Audio Codecs for Music and Voice Communication
MP3 and AAC are common lossy formats for music distribution, while FLAC preserves the original decoded samples. Opus is designed for interactive speech and audio as well as other uses, offering flexible bit-rate operation. A suitable codec depends on content, device support, processing delay, bandwidth and the required listening quality.
Audio Bit Rate Is Not Sampling Frequency
'Sampling frequency is the audio bit rate' confuses samples per second with encoded bits per second. 'Lossless audio removes sound detail' is false because decoding reproduces the original samples. 'More channels always mean better quality' ignores speaker layout, recording quality, bit depth and codec settings. This distinction matters when evaluating codec behavior and media delivery.
Comparing Fidelity, Delay and Audio Data Size
Calculate uncompressed PCM rate by multiplying sampling frequency, bits per sample and channel count. Distinguish sample rate, bit depth, channel count and compressed bit rate. Compare lossy and lossless codecs, and explain why interactive voice applications prioritize low delay and intelligibility while archival recordings prioritize exact reconstruction. Keep the units explicit in every calculation.
Audio Sampling and Codec Terminology
- Sampling frequency - Audio samples captured each second.
- Bit depth - Bits used for each audio sample.
- PCM - Represents sampled audio with quantized values.
- Masking - Reduces perception of sounds near louder sounds.
- FLAC - Losslessly compresses digital audio.
- Opus - Codec for interactive and streaming audio.
📝 All Audio compression techniques MCQs
Q1. If the sampling rate of an audio signal is increased from to , which of the following is the most direct consequence?
📖 Explanation: Increasing the sampling rate expands the range of frequencies that can be represented, allowing components up to half the new rate (48 kHz) to be captured. This does not inherently change file size, latency, or bit depth; those depend on other parameters. Therefore the most immediate effect is that a broader frequency spectrum, especially higher tones, can be recorded accurately.
Q2. When an audio file is compressed using a lossy codec, which statement best describes the relationship between the original and compressed sounds?
📖 Explanation: Lossy compression discards information that is deemed less perceptible, so the resulting audio is not an exact copy of the source. Listeners may notice subtle differences, especially in complex or quiet passages. The process does not guarantee identical frequency content or dynamic range, making audible differences the most accurate description.
Q3. A streaming service prioritizes audio packets over video packets during network congestion. What is the most likely impact on user experience?
📖 Explanation: By giving audio packets higher priority, the service ensures they traverse the congested network first, preserving continuous playback. Video, which uses more bandwidth, may suffer delays, leading to buffering or temporary pauses. This trade‑off keeps speech or music intelligible while visual quality degrades during congestion.
Q4. Which of the following best contrasts lossless and lossy audio compression?
📖 Explanation: Lossless codecs compress data without eliminating any information, enabling perfect reconstruction of the original signal. In contrast, lossy codecs remove audio details that are considered inaudible or less important, resulting in smaller files but irreversible changes. The key distinction lies in whether any original data is permanently lost during compression.
Q5. Considering storage constraints and audio fidelity, which scenario best justifies using a lossy codec like MP3 over a lossless codec like FLAC?
📖 Explanation: In a café environment the primary goal is to deliver pleasant background music without consuming excessive bandwidth. A lossy codec such as MP3 provides sufficient quality for casual listening while keeping file sizes small, making it ideal for limited‑bandwidth streaming. Master archiving or forensic work demand lossless fidelity, and multi‑track editing benefits from the full detail of lossless formats.
Q6. Two audio streams have the same sampling rate of but bitrates of and . Which statement accurately reflects the perceptual difference?
📖 Explanation: Higher bitrate allocations allow more audio information to be retained, reducing quantization noise and masking artifacts. At 128 kbps, especially in dense or dynamic sections, listeners may hear distortion or loss of subtle instruments. The 320 kbps stream retains finer detail, delivering a clearer and more faithful reproduction of the source material.
Q7. According to the Nyquist theorem, what is the minimum sampling rate required to accurately reproduce audio frequencies up to ?
📖 Explanation: Nyquist states that the sampling frequency must be at least twice the highest frequency component to avoid aliasing. For a maximum audible frequency of 20 kHz, the minimum safe sampling rate is . Sampling at this rate ensures that all intended frequencies are captured without distortion.
Q8. How does increasing the bit depth from 16‑bit to 24‑bit affect the theoretical dynamic range of digital audio?
📖 Explanation: Each additional bit adds roughly 6 dB of dynamic range because it provides twice as many quantization levels. Raising the depth from 16 to 24 bits adds eight extra bits, yielding an increase of about . The answer reflects the per‑bit contribution, indicating a 6 dB gain for each added bit.
Q9. Psychoacoustic models in codecs like AAC exploit masking effects. Which description best captures this principle?
📖 Explanation: Masking occurs when a dominant tone makes adjacent softer tones less audible to the human ear. Psychoacoustic models predict these regions and allocate fewer bits to masked components, reducing overall bitrate while preserving perceived quality. This selective encoding leverages human hearing characteristics to achieve efficient compression.
Q10. If a user adjusts the volume slider in a web‑based audio player, which component must respond in real time to maintain interactivity?
📖 Explanation: The volume control manipulates the audio signal on the user's device, requiring immediate processing by the client‑side audio API. Server‑side resources, databases, or CDN caches are unrelated to real‑time playback adjustments and would introduce latency, breaking the interactive experience.
Q11. When implementing real‑time voice communication, why might a low‑latency codec be preferred over a high‑compression codec?
📖 Explanation: In conversational contexts, any delay can cause overlapping speech and echo, disrupting natural dialogue. Low‑latency codecs minimize processing and buffering time, preserving the immediacy of speech. While high compression reduces bandwidth, it often introduces additional delay, making low‑latency solutions more suitable for interactive communication.
Q12. In a multiplexed multimedia stream that includes both audio and video, allocating more bits to audio while keeping total bitrate constant will most likely result in which outcome?
📖 Explanation: Bitrate is a shared resource; increasing the portion assigned to audio enhances its fidelity, but the video segment must surrender bits, typically leading to reduced resolution or increased compression artifacts