[linux-audio-user] how to change the bitrate of a wav file?

Erik de Castro Lopo erikd-lad at mega-nerd.com
Sun May 22 17:15:02 EDT 2005

Kenneth Dombrowski wrote:

> Hi All,
> I have a wav file which cdrecord is rejecting, I believe because it is
> 24 bit rather than 16; here is the output from 'file':
> taylor_oxley_dixon.wav: RIFF (little-endian) data, WAVE audio,
> Microsoft PCM, 24 bit, stereo 44100 Hz
> Would someone be kind enough to tell me the command to convert this
> file to 16 bit, please?

Use sndfile-convert:

    sndfile-convert -pcm16 taylor_oxley_dixon.wav taylor_oxley_dixon16.wav 

In Debian, sndfile-convert is part of the sndfile-programs package.

  Erik de Castro Lopo  nospam at mega-nerd.com (Yes it's valid)
"Having a firewall that allows NFS to the Internet is like having a
seat belt that lets your head touch the dashboard." -- Marcus Ranum

More information about the Linux-audio-user mailing list