If you’re offering Wave files because of the quality, have you considered offering FLAC instead?
- On average, you’ll get at least 50% compression out of it
- It’s the most popular compressed lossless format
- The encoder bakes an MD5 hash of the original PCM audio into the FLAC file that allows a decoder (eg.
flac -t) to verify that the encoded data produces output bit-for-bit identical with the original audio.
flacencoder has a
--verifyoption which will double-check the correctness of the MD5 hash as the output file is being generated by decompressing the freshly compressed data in parallel.