Multimedia Digital Audio
Multimedia Digital Audio
Digitization Sound
Sound is a pressure wave, taking continuous values. Increase /
decrease in pressure can be measured in amplitude, which can be
digitized by 2 steps
Digitization means conversion to a stream of numbers—preferably
integers for efficiency.
Sampling: Measuring the amplitude at equally spaced time intervals.
Measuring the quantity we are interested in, usually at evenly spaced
intervals (every one time unit) measured in Hz, KHz, MHz
Nyquist Theorem
For lossless digitization, the sampling rate (rate) should be at least
twice the maximum frequency (f) responses Indeed many times more the
better.
Mathematically (f < 0.5*rate) or (2f < rate), if we are given time,
use (f < 1/T) in KHz since the Rate = 1/t.
The frequency equal to half the Nyquist rate is called Nyquist
Frequency (f = 0.5*rate). F = rate/2
How do you calculate Nyquist frequency?
Divide the sampling rate by two to calculate the Nyquist frequency for
your system. For example, if the sampling rate of your system is 10
kHz (10,000 samples per second), the Nyquist frequency of your system
will be 5 kHz.(5000 Hz)
The three sampling rates most often used in multimedia are 44.1 kHz
(CD-quality), 22.05 kHz, and 11.025 kHz. Sample sizes are either 8
bits or 16 bits. The larger the sample size, the more accurately the
data will describe the recorded sound.
An 8-bit sample size provides 256 equal measurement units to
describe the level and frequency of the sound in that slice of time. A
16-bit sample size, on the other hand, provides a staggering 65,536
equal units to describe the sound in that same slice of time.
Slices of analog waveforms are sampled at various frequencies,
and each discrete sample is then stored either as 8 bits or 16 bits
(or more) of data.
The value of each sample is rounded off to the nearest integer
Audio Filtering
Prior to sampling and AD conversion, the audio signal is also usually
filtered to remove unwanted frequencies. The frequencies kept depend
on the application. For speech, typically from 50 Hz to 10 kHz is
retained. Other frequencies are blocked. Why???
Synthetic Sounds
Digitized sound must still be converted to analog, for us to hear it.
Splicing توصيلand Assembly Using the same tools mentioned for trimming,
you will probably want to remove the extraneous noises that inevitably
creep into a recording
Here are the formulas for determining the size (in bytes) of a digital
recording.
For a monophonic recording:
Sampling rate * duration of recording in seconds * (bit resolution / 8) * 1
For a stereo recording:
Sampling rate * duration of recording in seconds * (bit resolution / 8) * 2
State the Nyquist frequency for the following digital sample intervals.
Express the result in Hertz in each case.
(a) 1 millisecond
(b) 0.005 seconds
(c) 1 hour
2f < 1/T 2ft = 1 f = 1/(2t)
Answer:
(a) 1 millisecond → 500 Hz →0.5 KHz
(b) 0.005 seconds→ 100 Hz→ 0.1 KHz
(c) 1 hour→ 0.000139 Hz = 0.139 mHz (mili Hz) Not Mega
References
[ CITATION ZiN04 \l 1033 ]
[ CITATION Vou11 \l 1033 ]