how to calculate the compression ration of audio file?

3 vues (au cours des 30 derniers jours)
saf asalah
saf asalah le 14 Déc 2016
Commenté : José-Luis le 14 Déc 2016
i'm doing compression to some audio files how to calculate the compression ration of audio file?
  1 commentaire
José-Luis
José-Luis le 14 Déc 2016
Isn't it a matter of comparing file size before and after?

Connectez-vous pour commenter.

Réponses (1)

Jan
Jan le 14 Déc 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 commentaires
saf asalah
saf asalah le 14 Déc 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 le 14 Déc 2016
Pretty much, provided you are happy to include the header information in the ratio.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by