I recorded some .wav files that will act as our voice-menu using Audacity. I uploaded them to my Asterisk account, and tried to play them using the diaplan. Didn’t work. I played around with smaller .wav files, but nothing worked. I researched online, and it turns out that Asterisk doesn’t accept just ANY .wav file, it needs to have the format and codec for the specific type of file.
According to voip-info.org, “Asterisk has codecs for wav (pcm), gsm, g729, g726, and wav49…However, Asterisk does not understand ADPCM WAV files.”
I used the following command on the Asterisk server to convert our wav files to a format Asterisk will understand and playback:
sox input.wav -r 8000 -c 1 -s -w output.wav resample -ql
Luckily, sox was already installed on the server.