layout: page title: libsndfile: Supported formats

libsndfile : Supported formats

The following table lists the file formats and encodings that libsndfile can read and write. The file formats are arranged across the top and encodings along the left edge.

{:.formats-table}

Microsoft WAVSGI / Apple AIFF / AIFCSun / DEC / NeXT AU / SNDHeaderless RAWParis Audio File PAFCommodore Amiga IFF / SVXSphere Nist WAVIRCAM SFCreative VOCSoundforge W64GNU Octave 2.0 MAT4GNU Octave 2.1 MAT5Portable Voice Format PVFFasttracker 2 XIHMM Tool Kit HTKApple CAFSound Designer II SD2Free Lossless Audio Codec FLAC
Unsigned 8 bit PCMR/WR/WR/WR/WR/WR/W
Signed 8 bit PCMR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
Signed 16 bit PCMR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
Signed 24 bit PCMR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
Signed 32 bit PCMR/WR/WR/WR/WR/WR/WR/WR/WR/WR/WR/W
32 bit floatR/WR/WR/WR/WR/WR/WR/WR/WR/W
64 bit doubleR/WR/WR/WR/WR/WR/WR/WR/W
u-law encodingR/WR/WR/WR/WR/WR/WR/WR/WR/W
A-law encodingR/WR/WR/WR/WR/WR/WR/WR/WR/W
IMA ADPCMR/WR/W
MS ADPCMR/WR/W
GSM 6.10R/WR/WR/WR/W
G721 ADPCM 32kbpsR/WR/W
G723 ADPCM 24kbpsR/W
G723 ADPCM 40kbpsR/W
12 bit DWVWR/WR/W
16 bit DWVWR/WR/W
24 bit DWVWR/WR/W
Ok Dialogic ADPCMR/W
8 bit DPCMR/W
16 bit DPCMR/W

From version 1.0.18, libsndfile also reads and writes FLAC and Ogg/Vorbis.

From version 1.0.29, libsndfile can read and write Ogg/Opus.

From version 1.1.0, libsndfile can read and write MP3.

Some of the file formats I am also interested in adding are:

  • Kurzweil K2000 sampler files.
  • Ogg Speex.

Other file formats may also be added on request.

If you are interested in how to add a new format to a libsndfile, you may find this FAQ helpful.