how to calculate the compression ration of audio file?

7 次查看(过去 30 天)
i'm doing compression to some audio files how to calculate the compression ration of audio file?

回答(1 个)

Jan
Jan 2016-12-14
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 个评论
saf asalah
saf asalah 2016-12-14
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 2016-12-14
Pretty much, provided you are happy to include the header information in the ratio.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by