You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Sound is an analogue signal — it varies continuously. Computers, however, work with digital (discrete) data. This lesson explains how sound is converted from analogue to digital and the factors that affect the quality and file size of digital audio.
To store sound on a computer, the analogue sound wave must be converted into a digital representation through a process called sampling.
Sampling is the process of measuring the amplitude (height) of a sound wave at regular intervals and recording each measurement as a binary value.
The device that converts an analogue sound signal into digital data is called an Analogue-to-Digital Converter (ADC). To play digital sound back through speakers, a Digital-to-Analogue Converter (DAC) is used.
The sample rate (also called sampling frequency) is the number of samples taken per second. It is measured in Hertz (Hz).
A higher sample rate means:
A lower sample rate means:
To accurately capture a sound, the sample rate should be at least twice the highest frequency in the audio. Human hearing ranges from about 20 Hz to 20,000 Hz, so CD audio uses a sample rate of 44,100 Hz (just over twice 20,000 Hz).
Bit depth (also called sample resolution or bit resolution) is the number of bits used to store each individual sample.
| Bit Depth | Number of Possible Values | Precision |
|---|---|---|
| 8 bits | 256 levels | Low quality |
| 16 bits | 65,536 levels | CD quality |
| 24 bits | 16,777,216 levels | Studio quality |
A higher bit depth means:
A lower bit depth means:
flowchart LR
A[Analogue sound wave] --> B[ADC samples wave]
B --> C[Sample rate Hz]
B --> D[Bit depth per sample]
C --> E[Binary values stored]
D --> E
E --> F[File size = rate x depth x time x channels]
The file size of a sound file can be estimated using:
File size (bits) = Sample rate (Hz) × Bit depth (bits) × Duration (seconds)
For stereo audio (two channels), multiply by 2:
File size (bits) = Sample rate × Bit depth × Duration × Number of channels
A mono audio clip is recorded at 44,100 Hz with a bit depth of 16 bits for 30 seconds.
A stereo audio clip is recorded at 22,050 Hz with a bit depth of 8 bits for 10 seconds.
| Change | Effect on Quality | Effect on File Size |
|---|---|---|
| Increase sample rate | Better quality (closer to original) | Larger file size |
| Decrease sample rate | Poorer quality (less accurate) | Smaller file size |
| Increase bit depth | Better quality (more precise samples) | Larger file size |
| Decrease bit depth | Poorer quality (more quantisation error) | Smaller file size |
Exam Tip: Sound file size questions are very common. Remember the formula: sample rate × bit depth × duration (× channels if stereo). Always show your working and convert to appropriate units (bytes, KB, MB).
A 3-minute song is recorded at CD quality: 44,100 Hz sample rate, 16-bit depth, stereo (2 channels).
This is the size of the uncompressed WAV file. Encoded as a 192 kbps MP3, the same song would be roughly 4.3 MB — about a seventh of the original size, with quality loss that most listeners cannot detect.
A podcast records 30 minutes of mono speech at 22,050 Hz with 8-bit depth.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.