Sound is a continuous analogue wave — it varies smoothly over time with infinitely many possible values. Computers can only store discrete digital values, so sound must be converted. This process is called sampling.
The sampling rate (also called sample rate or sampling frequency) is the number of samples taken per second. It is measured in Hertz (Hz) or kilohertz (kHz).
| Sampling rate | Quality level | Typical use |
|---|---|---|
| 8,000 Hz (8 kHz) | Low quality | Telephone voice |
| 22,050 Hz (22 kHz) | Medium quality | AM radio quality |
| 44,100 Hz (44.1 kHz) | High quality | CD audio standard |
| 48,000 Hz (48 kHz) | Professional | DVD / professional audio |
Higher sampling rate → more samples per second → the digital waveform more closely matches the original analogue signal → better sound quality → larger file size.
The Nyquist theorem states that the sampling rate must be at least twice the highest frequency you want to capture. Human hearing goes up to ~20 kHz, so CD audio uses 44,100 Hz (more than 2 × 20,000).
Bit depth (also called sample resolution or sample size) is the number of bits used to store each individual audio sample. More bits = more possible amplitude values = more accurate representation of the analogue waveform.
| Bit depth | Amplitude levels | Use |
|---|---|---|
| 8-bit | 256 levels | Old gaming, voice, low quality |
| 16-bit | 65,536 levels | CD audio standard |
| 24-bit | 16,777,216 levels | Professional studio recording |
Number of amplitude levels = 2^(bit depth). Higher bit depth reduces quantisation error — the difference between the actual analogue value and the stored digital approximation.
The uncompressed file size of a digital audio recording is:
File size (bits) = Sample rate × Bit depth × Duration (seconds)
For stereo (2 channels), multiply by 2. Then divide by 8 for bytes.
30-second mono recording at 44,100 Hz, 16-bit:
60-second stereo recording at 44,100 Hz, 16-bit:
| Factor | Increasing causes | Effect on quality |
|---|---|---|
| Sampling rate | Larger file size | Better frequency reproduction, clearer high sounds |
| Bit depth | Larger file size | More amplitude levels, less noise, greater dynamic range |
| Duration | Larger file size | No effect on quality — just more data |
| Channels (mono→stereo) | Doubles file size | Spatial audio / stereo effect |
8 questions · 20 marks · Show all calculations
| Term | Definition |
|---|
10 questions · 10 marks · 10 minutes