Wav conversion issue

Hey everybody -

I’ve been working for the past couple of days to get some wav files to work with Asterisk. I recorded the voice prompts with a mic, then saved them as wav files.

I know that Asterisk will only play 8000 Hz, 16 bit, mono files - The ones I recorded are 44 KHz, 32 bit, stereo. I’ve tried to use sox in a shell to resample the recordings into something Asterisk will like. Problem is, the files come out all scratchy and such, I can’t seem to figure out why. Here is the command I issued:

sox peruse-greeting.wav -r 8000 -c1 /peruse-greeting.wav resample -ql

I do get some output back before the process completes…

sox: Premature EOF on .wav input file

Not too sure what I might be doing wrong, or perhaps there is a problem with the file I am inputing to sox. Hopefully someone has had this issue in the past and has come up with a solution since

Thanks!
-Eq

I was able to solve the problem. I took the original wav files into Microsoft Sound Recorder, then “Save as” and specify the correct parameters to create a file Asterisk would play. It seems to be working fine

This is sort of a workaround solution, though, as I have found no solution for the problem with sox

-Eq