Question: Audio Compression Here is a randomly generated waveform: Variants of the DCT algorithm are used heavily in lossy audio compression. Because an audio signal is

Audio Compression
Here is a randomly generated waveform:
Variants of the DCT algorithm are used heavily in lossy audio compression. Because an audio signal is saved as a waveform, expressing it as a sum of cosine waves
obvious here.
np.random.seed(5)
x=np.linspace (0,2**np.,960)
y=np.zeroslike(x)
for i in range(15):
y+=np*cos((x+(np*random*rand()**10)-5)**(np*random*rand()**50))**np*random*rand()
plt.plot (x,y)
# This is randomly generated -- You can try playing it,
# but I can't guarantee you'll like what you hear
To simplify things computationally, we will break up the data into smaller chunks of 192 elements. Why does this help? Lets explore what happens if we try to com
DCT basis of an entire 4 minute song sampled at 44100Hz :
(4min60sec44100Hz)28 bytes per decimal ~~900TB
So, just a bit too much to store in memory. How about for just the smaller chunks?
19228 bytes per decimal =288Kb
 Audio Compression Here is a randomly generated waveform: Variants of the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!