Wednesday, June 9, 2010

Convert WAV file to Asterisk playable format

Install sox in your linux box by:

# yum install sox or apt-get install sox

Then convert using the following command:

# sox file_in.wav -r 8000 -c 1 -s -w file_out.wav resample -ql

or if you want a gsm:
# sox foo.wav -r 8000 -c1 foo.gsm resample -ql

No comments: