📁 Topic 3 · 3.3 Sound and Compression
3.3a Representing sound — sampling, sample rate and bit depth
Edexcel 4CP0 · iGCSE Computer Science · ~11 min read
Notes
──
Video
──
Slides
──
Worksheet
──
Quiz

Analogue vs Digital Sound

Sound is naturally analogue — a continuous waveform of air pressure variations. Computers can only process digital (binary) data. To store sound digitally, the analogue wave must be converted to binary through a process called sampling.

Sampling

Sampling is the process of measuring (taking "samples" of) the amplitude (height) of the analogue sound wave at regular time intervals. Each measurement is recorded as a binary number. The collection of these samples can be used to reconstruct the original sound.

Sample Rate

The sample rate (or sampling rate) is the number of samples taken per second, measured in Hz (hertz) or kHz (kilohertz).

  • Higher sample rate → more samples per second → more accurate representation of the sound → larger file size
  • CD audio: 44,100 Hz (44.1 kHz)
  • Human speech: often 8,000 Hz is sufficient

Bit Depth

Bit depth (sample resolution) is the number of bits used to store each sample. More bits = more possible amplitude values = more accurate representation of the sound.

Bit depthPossible amplitude valuesUse
8 bits256 valuesBasic, low quality
16 bits65,536 valuesCD quality audio
24 bits16,777,216 valuesStudio/professional audio

Calculating Audio File Size

File size (bits) = sample rate (Hz) × bit depth (bits) × duration (seconds) × channels

// Channels: 1 = mono, 2 = stereo

Example: A 3-minute stereo audio file at 44,100 Hz with 16-bit depth:

  • Duration = 3 × 60 = 180 seconds
  • File size = 44,100 × 16 × 180 × 2 = 254,016,000 bits
  • = 254,016,000 ÷ 8 = 31,752,000 bytes ≈ 30.3 MiB

Effect of Increasing Sample Rate / Bit Depth

ChangeEffect on qualityEffect on file size
Increase sample rateBetter (more accurate sound)Larger
Decrease sample rateWorse (choppy/distorted)Smaller
Increase bit depthBetter (more precise amplitudes)Larger
Decrease bit depthWorse (fewer amplitude levels)Smaller
📝 Exam Tip: The file size formula for audio is: sample rate × bit depth × duration × channels (÷8 for bytes). Stereo = 2 channels; mono = 1. Always show full working in exam calculations.
⚠️ Common Mistakes
  • Forgetting to multiply by number of channels (stereo = ×2)
  • Confusing sample rate and bit depth — sample rate = samples per second; bit depth = bits per sample
  • Not converting time to seconds before calculating
← 3.2c Representing Images Topic 3 · 3.3 Sound and Compression Next: 3.3b Data Compression →
🔒
Pro Content
Subscribe to access all 47 Edexcel iGCSE lessons.
£7.99/month
or £59/year