Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



audio compression using wavelet
Posted:
Dec 13, 2012 6:02 AM


Hello everyone,
I am trying to do an audio compression using wavelet. I am using 'wdencmp' function. Here is my code:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% y=wavread(AUDIO.wav) %loading some audio file [THR,SORH,KEEPAPP] = ddencmp('cmp','wv',y); N=5; WAVELET_NAME='db10'; [XC,CXC,LXC,PERF0,PERFL2] =... wdencmp('gbl',y,WAVELET_NAME,N,THR,SORH,KEEPAPP); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
The thing is that the compression score looks lousy to me. For a signal with 32400 samples I obtain
PERF0 =
65.5505
PERFL2 =
87.4930
If I am using fft for the compression, means: keeping only the highest coefficients of the Fourie transform of the signal and than take the inverse fft. I obtain L2 norm squared around 99 for the same compression ratio. My questions are: 1) Does the values for PERF0 and PERFL2 looks reasonable? 2) If so, is there some intuition of why compression with fft do much better? 3) Are there different ways to do audio compression with wavelet that can give better results?
Thanks!



