SNDFILE-CONVERT(1) General Commands Manual SNDFILE-CONVERT(1)

sndfile-convertconvert sound files from one format to another

sndfile-convert [-override-sample-rate=rate] [-endian=little | big | cpu] [-normalize] [encoding] input output

sndfile-convert converts sound files from one audio format to another. The output file is overwritten it it already exists.

The format of the output file is determined by the filename extension. The following file formats are currently recognized:

wav
WAV (Microsoft)
aif
AIFF (Apple/SGI)
au
AU (Sun/NeXT)
snd
AU (Sun/NeXT)
raw
RAW (header-less)
gsm
RAW (header-less)
vox
RAW (header-less)
paf
PAF (Ensoniq PARIS, big-endian)
fap
PAF (Ensoniq PARIS, little-endian)
svx
IFF (Amiga IFF/SVX8/SV16)
nist
SPHERE (NIST SPeech HEader Resources)
sph
SPHERE (NIST SPeech HEader Resources)
voc
VOC (Creative Labs)
ircam
SF (Berkeley/IRCAM/CARL)
sf
SF (Berkeley/IRCAM/CARL)
w64
W64 (SoundFoundry WAVE 64)
mat
MAT4 (GNU Octave 2.0 / Matlab 4.2)
mat4
MAT4 (GNU Octave 2.0 / Matlab 4.2)
mat5
MAT5 (GNU Octave 2.1 / Matlab 5.0)
pvf
PVF (Portable Voice Format)
xi
XI (FastTracker 2)
htk
HTK (HMM Tool Kit)
sds
SDS (Midi Sample Dump Standard)
avr
AVR (Audio Visual Research)
wavex
WAVEX (MS WAVE with WAVEFORMATEX)
sd2
SD2 (Sound Designer II)
flac
FLAC (FLAC Lossless Audio Codec)
caf
CAF (Apple Core Audio File)
wve
WVE (Psion Series 3)
prc
WVE (Psion Series 3)
ogg
OGG (OGG Container format)
oga
OGG (OGG Container format)
mpc
MPC (Akai MPC 2k)
rf64
RF64 (RIFF 64)

The following options are recoginzed:

=rate
Make the input use sample rate of rate Hz.
=little
Make the output file use little endian data.
=big
Make the output file use big endian data.
=cpu
Make the output file use CPU endianness.
Normalize the audio data in the output file.

The optional encoding parameter allows setting of the data encoding for the output file. The following encodings are currently supported:

signed 8 bit pcm
unsigned 8 bit pcm
16 bit pcm
24 bit pcm
32 bit pcm
32 bit floating point
ULAW
ALAW
IMA ADPCM (WAV only)
MS ADPCM (WAV only)
GSM6.10 (WAV only)
12 bit DWVW (AIFF only)
16 bit DWVW (AIFF only)
24 bit DWVW (AIFF only)
Vorbis (OGG only)

If no encoding is specified for the output file, sndfile-convert will try to use the encoding of the input file. This will not always work as most container formats (e.g. WAV, AIFF etc) only support a small subset of encodings (e.g. 16 bit PCM, a-law, Vorbis etc).

The sndfile-convert utility exits 0 on success, and >0 if an error occurs.

http://libsndfile.github.io/libsndfile/

Erik de Castro Lopo <erikd@mega-nerd.com>.

November 2, 2014 Linux 6.7.0-arch3-1