File Size, File Compression, and File Types of Digital Audio
File Size, File Compression, and File Types of Digital Audio
Part 3
File Size, File Compression, and File
Types of Digital Audio
1
In this lecture, you will learn:
• The effects of sampling rate, bit depth, and
number of channels on the audio file size
2
Choices of Sampling Rate and Bit Depth
3
Let's estimate the file size of a 1-
minute CD-quality audio file
4
1-minute CD Qualtiy Audio
• Sampling rate = 44100 Hz
(i.e., 44,100 samples/second)
• Bit depth = 16
(i.e., 16 bits/sample)
• Stereo
(i.e., 2 channels: left and right channels)
5
File Size of 1-min CD-quality Audio
• 1 minute = 60 seconds
6
File Size of 1-min CD-quality Audio
84,672,000 bits
= 84,672,000 bits / (8 bits/byte)
= 10,584,000 bytes
= 10,584,000 bytes / (1024 bytes/KB)
10336 KB
= 10336 KB / (1024 KB/MB)
10 MB
7
Estimate Network Transfer Time
Suppose you are using 1.5Mbps (mega bits per
second) broadband to download this 1-minute
audio.
9
General Strategies to Reduce Digital
Media File Size
• Reduce sampling rate
• Reduce bit depth
• Apply compression
10
Reduce Sampling Rate
• Sacrifices the fidelity of the digitized audio
• Need to weigh the quality against the file size
• Need to consider:
– human perception of the audio
(e.g., How perceptibe is the audio with lower
sampling rate?)
– how the audio is used
• music: may need higher sampling rate
• short sound clips such as explosion and looping ambient
background noise: may work well with lower sampling rate
11
Sampling Rate Examples
• 11,025 Hz AM Radio Quality/Speech
• 22,050 Hz Near FM Radio Quality (high-end
multimedia)
• 44,100 Hz CD Quality
• 48,000 Hz DAT (digital audio tape) Quality
• 96,000 Hz DVD-Audio Quality
• 192,000 Hz DVD-Audio Quality
12
Estimate Thresholds of Sampling
Rate Based on Human Hearing
Let's consider these two factors:
1. Human hearing range
2. A rule called Nyquist's theorem
13
Human Hearing Range
• Human hearing range: 20 Hz to 20,000 Hz
• Most sensitive to 2,000 Hz to 5,000 Hz
14
Nyquist Theorem
We must sample at least 2 points in each sound
wave cycle to be able to reconstruct the sound
wave satisfactorily.
16
Choosing Sampling Rate
If we consider human ear's most sensitive range of frequency
(2,000 Hz to 5,000 Hz), then what is the lowest sampling
rate may be used that still satisfies the Nyquist Theorem?
17
Effect of Sampling Rate on File Size
File size = duration sampling rate bit depth
number of channels
20
Audio File Compression
• Lossless
• Lossy
– gets rid of some data, but human perception is
taken into consideration so that the data removed
causes the least noticeable distortion
– e.g. MP3 (good compression rate while preserving
the perceivably high quality of the audio)
21
Effect of Number of Channels on File Size
23
Common Audio File Types
File Type Acronym For Originally File Info & Platforms
Created By Compression
.aiff Audio Interchange Apple compressed, Mac, Windows
File Format uncompressed
.au Sun compressed Sun, Unix, Linux
.snd
.ra Real Audio Real Systems compressed; can be Cross-platform;
.rm streamed with Real requires Real player
Server
.wma Window Media Microsoft
Audio
24
Choosing an Audio File Type
Determined by the intended use
25
File Size Limitations
• Is your audio used on the Web?
– file types that offer high compression
– streaming audio file types
26
Intended Audience
• What is the equipment that your audience will
use to listen to your audio?
27
Whether as a Source File
If you are keeping the file for future editing,
choose a file type:
• uncompressed
• allows lossless compression
28
Review Questions
29
Review Question
True/False: 8-bit is generally considered to be
adequate for recording music.
30
Review Question
True/False: MP3 is a good file format to keep as
a source file for further editing.
31
Review Question
Which of the following file extensions indicate audio files?
BMP
WAV
JPEG
AIFF
MP3
GIF
JPG
PSD
TIFF
WMF
32
Review Question
According to Nyquist’s theorem, we must
sample at least ___ points in each sound wave
cycle to be able to reconstruct the sound wave
satisfactorily.
In other words, the sampling rate of the audio
must be at least ___ of the audio frequency.
33
Review Question
The reduction of a digital audio file size can be
achieved by ___.
34
Review Question
Higher ___ will result in larger file size.
A. amplitude
B. frequency
C. sampling rate
D. bit depth
E. dynamic range
35
Review Question
Reducing the bit depth from 16-bit to 8-bit will
___.
36
Review Question
Reducing the sampling rate from 44,100 Hz to
22,050 Hz will ___.
37
Review Question
Reducing the number of channels from 2
(stereo) to 1 (mono) will ___.
38