Clear Filters
Clear Filters

can anyone help me with matlab code that calculate compression ratio of audio file?

1 view (last 30 days)
i'm trying some method of compression on wav files but i still don't know how to get the compression ratio. i know the compression ratio is the size of uncompressed data divide by the size of compressed data. then, how to calculate the size of the audio data?

Accepted Answer

Walter Roberson
Walter Roberson on 8 Jan 2017
Use dir() to retrieve the 'bytes' that the file occupies.
Compression ratio of audio files is not often of interest, because audio files are permitted to contain a lot of information as well as the audio itself. For example the audio file might contain information about the Artist, Track Title, Album, Track Number, Genre, Album Cover, and so on.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!