Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Audio Codec should I use?

Which audio codec should I choose for my C# software development project where the raw audio to be transcoded/transported/used is based on the following:

  1. For encoding Speech only
  2. Audio can be stereo or mono
  3. Able to support live streaming
  4. Good tradeoff between file size and quality
  5. To be transported over TCP/IP in its encoded form
  6. Can be played back by a readily available free player without further processing

Note that whether there is a readily available free codec library for performing transcoding does not need to be taken into consideration.

like image 369
Lopper Avatar asked Mar 03 '10 01:03

Lopper


People also ask

Which codec is best quality?

High device compatibility makes H. 264 one of the best codecs for streaming. Another benefit of H. 264 is the relatively small file size.

What is the best format for audio quality?

The best audio formats for sound quality are uncompressed or lossless compression files—think WAV, FLAC, and M4A. That's because these formats retain the original sound quality, though you'll have to put up with the fact these files will be large.

Is AAC or aptX better?

AAC and AptX are both steps up from SBC and are generally mainstream, though different devices might support either or both (AAC is most common on Apple phones and tablets, while AptX is the preferred standard for Android).


2 Answers

A more recent and better alternative would be the Opus Codec.

Check out the comparison with other codecs to see how well it performs.

like image 132
Stefan Mihai Stanescu Avatar answered Sep 22 '22 07:09

Stefan Mihai Stanescu


Speex is free open-source codec, designed for encoding speech in realtime solutions that need low latency. General-purpose compression schemes such as WMA or MP3 are likely to cause more delay and they also may not be able to operate well at very low bitrates. http://www.speex.org/

like image 42
Tronic Avatar answered Sep 19 '22 07:09

Tronic