Audio compression using DCT - but i get same size of files after inverse DCT

조회 수: 3 (최근 30일)
Hi I have a file ( 1.wav) - I'm trying to compress the first two seconds for this audio by using Discrete cosine transform . I attached the code , but when i use the command ( whos ) for the original samples and reconstructed samples after inverse DCT i get the same size and number of bytes So any explanation , and how i get the compression ratio ?

채택된 답변

Walter Roberson
Walter Roberson 2018년 5월 4일
편집: Walter Roberson 2018년 5월 4일
That is expected. You are writing out the re-expanded data as samples. There will be the same number of samples as before, so it is going to take the same output size (probably.)
See also my recent discussion at https://www.mathworks.com/matlabcentral/answers/398289-how-can-i-do-audio-compression-using-huffman-encoding#comment_563731 . For DCT you would not need to write out a dictionary, but you would not write out the coefficients you had zeroed out. You would, however, need to write out the original number of coefficients so when you read the values in, you knew how many zeros to pad with before reconstruction.
  댓글 수: 28
Abid Ali
Abid Ali 2020년 4월 30일
How to read back comp binary file to decode it

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Abid Ali
Abid Ali 2020년 4월 30일
How to read back the comp binary file, please Help me!!
Thanks

카테고리

Help CenterFile Exchange에서 Source Coding에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by