1
$\begingroup$

I am a noob to signal processing, but I need to create some audio files for IVR for Asterisk VOIP.

So my lady friend with a nice voice records her message on a Windows machine and sends me a 44KHz, stereo 32bit wav file.

I currently squash it into a 8KHz, mono, 16bit signed wav file for Linux, and then convert the wav to alaw or ulaw PCM format.

One source of info for this process is this link.

I can do some magic with Audacity:

  1. Stereo to mono
  2. Equalize, using a "voip" or "telephone" filter: discard anything over 3KHz and under 300Hz.
  3. compress volume/levels to -12 to -15 dB
  4. Resample 44 -> 8KHz
  5. Export as 16bit signed PCM wav
  6. Move it to Linux and sox it to alaw or ulaw

The result is acceptable, but I feel it could be improved. In particular, after resampling, the voice sounds muffled.

Is this order correct?

Do you have suggestions to get better results?

$\endgroup$
0
$\begingroup$

You should not have to compress the audio signal. Check your microphone level and adjust, so that the signal does not clip at 0dB. The level meter of any modern Windows machine will show when this happens. The reason for your muffled sound is that the filter needs to be done as apart of the re-sampling process. This is because the filter is used as an interpolator that will pick which samples to keep and discard the rest. It also needs to be low-pass filter when resampling downward to prevent aliasing. Not sure if band passing beforehand will do the same. I would set the high frequency at 8 kHz to preserve the frequency range. The Nyquist theory states that sound must be sampled at over twice the highest frequency to preserve the signal. Hopefully these suggestions will improve your results. I prefer doing my resampling and other digital signal processing via source code, which I do not distribute freely.

                               Regards, 

                                 thomasjonkeratyahoodotcom 
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.