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

1 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2017-1-8
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.

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by