Debian Codegraph @

docs/formats.md

raw
1 ---
2 layout: page
3 title: libsndfile: Supported formats
4 ---
5
6 # libsndfile : Supported formats
7
8 The following table lists the file formats and encodings that libsndfile can
9 read and write. The file formats are arranged across the top and encodings along
10 the left edge.
11
12 {:.formats-table}
13 | | Microsoft WAV | SGI / Apple AIFF / AIFC |Sun / DEC / NeXT AU / SND | Headerless RAW | Paris Audio File PAF | Commodore Amiga IFF / SVX | Sphere Nist WAV | IRCAM SF | Creative VOC | Soundforge W64 | GNU Octave 2.0 MAT4 | GNU Octave 2.1 MAT5 | Portable Voice Format PVF | Fasttracker 2 XI | HMM Tool Kit HTK | Apple CAF | Sound Designer II SD2 | Free Lossless Audio Codec FLAC |
14 |:-------------------|:-------------:|:-----------------------:|:------------------------:|:--------------:|:--------------------:|:-------------------------:|:---------------:|:--------:|:------------:|:--------------:|:-------------------:|:-------------------:|:-------------------------:|:----------------:|:----------------:|:---------:|:---------------------:|:------------------------------:|
15 | Unsigned 8 bit PCM | R/W | R/W | | R/W | | | | | R/W | R/W | | R/W | | | | | | |
16 | Signed 8 bit PCM | | R/W | R/W | R/W | R/W | R/W | R/W | | | | | | R/W | | | R/W | R/W | R/W |
17 | Signed 16 bit PCM | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | | R/W | R/W | R/W | R/W |
18 | Signed 24 bit PCM | R/W | R/W | R/W | R/W | R/W | | R/W | | | R/W | | | | | | R/W | R/W | R/W |
19 | Signed 32 bit PCM | R/W | R/W | R/W | R/W | | | R/W | R/W | | R/W | R/W | R/W | R/W | | | R/W | | |
20 | 32 bit float | R/W | R/W | R/W | R/W | | | | R/W | | R/W | R/W | R/W | | | | R/W | | |
21 | 64 bit double | R/W | R/W | R/W | R/W | | | | | | R/W | R/W | R/W | | | | R/W | | |
22 | u-law encoding | R/W | R/W | R/W | R/W | | | R/W | R/W | R/W | R/W | | | | | | R/W | | |
23 | A-law encoding | R/W | R/W | R/W | R/W | | | R/W | R/W | R/W | R/W | | | | | | R/W | | |
24 | IMA ADPCM | R/W | | | | | | | | | R/W | | | | | | | | |
25 | MS ADPCM | R/W | | | | | | | | | R/W | | | | | | | | |
26 | GSM 6.10 | R/W | R/W | | R/W | | | | | | R/W | | | | | | | | |
27 | G721 ADPCM 32kbps | R/W | | R/W | | | | | | | | | | | | | | | |
28 | G723 ADPCM 24kbps | | | R/W | | | | | | | | | | | | | | | |
29 | G723 ADPCM 40kbps | | | R/W | | | | | | | | | | | | | | | |
30 | 12 bit DWVW | | R/W | | R/W | | | | | | | | | | | | | | |
31 | 16 bit DWVW | | R/W | | R/W | | | | | | | | | | | | | | |
32 | 24 bit DWVW | | R/W | | R/W | | | | | | | | | | | | | | |
33 | Ok Dialogic ADPCM | | | | R/W | | | | | | | | | | | | | | |
34 | 8 bit DPCM | | | | | | | | | | | | | | R/W | | | | |
35 | 16 bit DPCM | | | | | | | | | | | | | | R/W | | | | |
36
37 From version 1.0.18, libsndfile also reads and writes
38 [FLAC](https://xiph.org/flac/) and [Ogg/Vorbis](https://xiph.org/vorbis/).
39
40 From version 1.0.29, libsndfile can read and write
41 [Ogg/Opus](https://opus-codec.org/).
42
43 From version 1.1.0, libsndfile can read and write MP3.
44
45 Some of the file formats I am also interested in adding are:
46
47 - Kurzweil K2000 sampler files.
48 - Ogg Speex.
49
50 Other file formats may also be added on request.
51
52 If you are interested in how to add a new format to a libsndfile, you may find
53 this [FAQ](new_file_type_howto.md) helpful.