The existing Linux/unix "sox" program is excellent for performing rate/channel/format conversions to/from just about any sound file format.

"Sound eXchange : universal sound sample translator"