Programmable Voice

  1. Home
  2. Docs
  3. Programmable Voice
  4. FAQ
  5. Why doesn’t my voice file sound clear

Why doesn’t my voice file sound clear

Often our customers will complain about their voice files sounding like static when they try to perform plays in Voice Elements. This is a common problem, and it has to do with trying to play the incorrect audio codec on a file.

When audio is transmitted “across the wire” it uses an 8khz 8bit Mulaw format (some European countries use an Alaw format, which is supported as well). Because of this, the default codec on the Voice Resource is set to Codec.MULAW_8Khz_8Bit. The wav files that are commonly found on PCs are in a different format, and so when it tries to perform a play there is a mismatch and the audio doesn’t sound right.

You can change the Codec by setting the Codec property on the VoiceResource. Here is some example code:

VoiceResource.Codec = Codec.MULAW_8Khz_8Bit;

Once you use the correct audio format, your files should play clearly.

It’s important to keep in mind, that even though Voice elements may be capable of playing higher quality audio, it still gets transmitted as 8Khz 8Kbit audio. For this reason, we generally recommend that you convert your audio to 8Khz 8Bit audio.

Converting Your Audio Files

We generally recommend converting your files to 8Khz 8Bit Mulaw. There are several applications available that you can easily use to convert to this format. Shareware options include GoldWave, and Wavepad. Many of our users have had good luck with the Open Source Audacity. When you need to convert your files in real time (i.e. during a call), our users have had good luck using the open source tool Sox.

If you have any questions,feel free to e-mail support@inventivelabs.com.

Was this article helpful to you? Yes 13 No

How can we help?