Gosh I sure know how to derail myself! Today, I spent a good chunk of my time investigating what is the best format and codec to use for my audio files, which are part of the voiceXML application. This was not meant to be a time-consuming exercise since Asterisk technically supports many formats and codecs. However, I was keen on finding something with a low bandwidth footprint and reasonable quality. To be precise I was thinking of something along the lines of 8 bits sampling size and sampling rate of 8 KHz.
Why? Well because I am bandwidth sensitive but also because ordinary voice doesn’t necessarily benefit much from high sample rates (or at least this is what you get if you follow debates related to podcasting for developing worlds). Ok back to the point 😉 ! In my adventure I came across speex and I must say, I am so in love with it. It truly seems to be something that one must consider just check out how it compares with other codecs by following this link http://www.speex.org/comparison/. What is also very interesting is the modesty attached to the comparison as captured by a disclaimer which basically says the results should be taken with a grain of salt!
The only issue I have at the moment is that speex is not supported by audacity. Thus after file creation one has to encode the files to .ogg files at the command line. This all translates to not being able to kill two birds with one stone which is not good because I certainly believe in killing two birds with one stone (just as a side issue I have been provided this link by Richard as part of dissuading me into such a believe). But when it comes down to it, I suppose my issue is not even an issue because at one point or the other one might need to convert files for Asterisk using command line utilities like SoX, “the Swiss Army knife of sound processing programs”. So when all has been said and done, I think I shall be a speex fan and not fanatic 😉