Clear Filters
Clear Filters

how to calculate the compression ration of audio file?

7 views (last 30 days)
i'm doing compression to some audio files how to calculate the compression ration of audio file?

Answers (1)

Jan
Jan on 14 Dec 2016
The compression ratio is the ratio between the size of tzhe compressed file or data and the uncompressed version. If you re-compress an MP3 file, it does not only concern the both file sizes.
You have to define, if the header information (e.g. tags etc) of MP3 files is included or not.
  2 Comments
saf asalah
saf asalah on 14 Dec 2016
thanks Simon my audio file is a wav file i need matlab code for compression ratio? is it size(compressed)/size(uncompressed)?
José-Luis
José-Luis on 14 Dec 2016
Pretty much, provided you are happy to include the header information in the ratio.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!