I need the code for reading a wav file later compressing and decompressing it,&comparing input's and output's by sound syntax,and compression technique should be a lossless technique.

basic thing is first we created a Mat file by loading it as [y fs nbits]=wavread('ourfile.wav'),later saved it as Mat file in command window. in the editior i loaded the wave file as load ourfile.mat. [y fs nbits]=wavread('ourfile.wav');%reading the wav file sound(y,fs); %playing the wav file now the thin is i need a compression technique for this,later decompression the signal and fs=48000;nbits=16;so the bit rate will be=784kbps,i need a 24:1 compressor.later 1:24 decompressor.

Answers (0)

Asked:

on 10 Sep 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!