Objectives
Key Terms
Introduction to Sound
Sound is a vibration that travels through a medium (such as air) and can be heard when it reaches the ear.
In computing, sound is represented as a series of binary data that approximates the original sound waves.
Analog vs Digital Sound
Figure 1: showing analogue (top) and digital (bottom) waves and the conversion of analogue into digital (middle)
Sound Sampling
Sampling is the process of taking regular measurements of an analog sound wave.
Each measurement is called a sample.
Sampling Rate (Frequency) is the number of samples taken per second, measured in Hertz (Hz).
Common sampling rates: 44.1 kHz (CD quality), 48 kHz (DVD quality).
A higher sampling rate provides better sound quality but increases file size.
Bit Depth (Resolution)
This is the number of bits used to store each sample.
Common bit depths: 8-bit, 16-bit, 24-bit.
Higher bit depth means more levels to represent sound amplitude (volume) more accurately.
A higher bit depth improves sound quality but also increases file size.
File Size Calculation for Digital Audio
To calculate the size of an audio file, you need:
Formula:
File Size (bits) = Sample Rate Bit Depth Number of Channels Duration (seconds)
For example, a 10-second stereo recording at 44.1 kHz with 16-bit depth:
44,10016210 = 14,112,000 bits or 1.76 MB
Sound Compression
Sound compression is necessary in order to reduce the file size for storage and transmission, especially on the internet.
Types of Compression:
1. Lossy Compression (e.g., MP3):
Removes parts of the sound that are less audible to human ears.
Reduces file size significantly but with some loss of quality.
No data is lost, the sound can be perfectly reconstructed.
File size is reduced but not as much as lossy compression.
Common Audio File Formats
Practical Applications of Sound Representation