Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reducing WAV sound file size, without losing quality

My application needs to play sound files. The only cross-platform file format I can use is WAVE (I'm using QSound of the Qt framework).

The file sizes of these sounds are quite large and I'd like to know if there is a way to reduce it, without losing (too much) quality.

I need the file to be stereo.

like image 592
Jérôme Avatar asked Oct 18 '25 14:10

Jérôme


2 Answers

The only way to reduce the size of a wav file is to resample it to a lower bit rate or use less bits per sample. Wav files don't have compression capabilities like mp3 or ogg.

If you are using a 16 bit 44 khz file you can cut the file size in half by going to a 22khz sample rate, and all you will lose is some of the high frequencies.

like image 138
Robert Harvey Avatar answered Oct 21 '25 11:10

Robert Harvey


Why not use FLAC? It's the best way to do lossless compression of WAV without sacrificing any quality at all.

like image 21
joshk0 Avatar answered Oct 21 '25 10:10

joshk0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!