Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Voice Compression Algorithms/Formats

We have some raw voice audio that we need to distribute over the internet. We need decent quality, but it doesn't need to be of musical quality. Our main concern is usability by the consumer (i.e. what and where they can play it) and size of the download. My experience has shown that mp3s do not produce the best compression numbers for voice audio, but I am at a loss for what the best alternatives are. Ultimately we would like to automate the conversion process to allow the consumer to choose the quality vs. size level that they would like.

like image 888
pdavis Avatar asked Oct 03 '08 15:10

pdavis


2 Answers

You should give Opus a try. Example compression command line:

ffmpeg -i x.wav -b:a 32k x.opus
like image 189
hochl Avatar answered Sep 19 '22 13:09

hochl


Start here.

As you rightly point out, voice compression is different from general audio compression. You'll find many codecs dedicated to telephony applications, ranging from PCM and ADPCM through later packet based encodings such as CELP used on GSM cellular networks.

Still, VOIP voice encoding is slightly different from that due to the medium used. you can find a good, free (unencumbered and open source (BSD)) library for speech encoding/decoding in the Speex software library.

Again, which you choose depends on the speech you're encoding and the medium it's being transmitted over. Also note that many libraries have several algorithms they can use depending on the circumstances, and some will even switch on the fly based on conditions of the sound and network.

To get more help, narrow your question down.

-Adam

like image 42
Adam Davis Avatar answered Sep 19 '22 13:09

Adam Davis