SNDFILE-CONVERT(1)
π SNDFILE-CONVERT π
okay bestie, gather round, because we're talking about sndfile-convert, the sndfile-convert(1) general commands manual page, and it's giving format-shifting icon. β¨
πΈ NAME πΈ
sndfile-convert β convert sound files from one format to another π
β¨ SYNOPSIS β¨
sndfile-convert [-override-sample-rate=rate]
[-endian=little | big | cpu] [-normalize] [encoding]
input output
π¦ DESCRIPTION π¦
so basically, sndfile-convert takes sound files and flips them from one audio format into another, no cap. it's the glow-up station for your audio files. π
β οΈ heads up bestie: the output file gets overwritten if it already exists. no little "are you sure?" popup, no takebacks. she just does it. π
π Formats π
the format of the output file is decided by the filename extension, periodt. here's the full roster of file formats she recognizes right now:
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)
like, that's a menu. she ate. π
π Options π
here's every option she recognizes, no skips:
-override-sample-rate=rateβ forces the input to use a sample rate ofrateHz. yes ma'am, we're overriding it.-endian=littleβ output file gets little endian data.-endian=bigβ output file gets big endian data.-endian=cpuβ output file matches whatever the CPU's endianness is.-normalizeβ normalizes the audio data in the output file. β¨
π Encodings π
that optional encoding parameter? yeah, it lets you set the data encoding for the output file. these are the encodings supported rn:
-pcms8β signed 8 bit pcm-pcmu8β unsigned 8 bit pcm-pcm16β 16 bit pcm-pcm24β 24 bit pcm-pcm32β 32 bit pcm-float32β 32 bit floating point-ulawβ ULAW-alawβ ALAW-ima-adpcmβ IMA ADPCM (WAV only)-ms-adpcmβ MS ADPCM (WAV only)-gsm610β GSM6.10 (WAV only)-dwvw12β 12 bit DWVW (AIFF only)-dwvw16β 16 bit DWVW (AIFF only)-dwvw24β 24 bit DWVW (AIFF only)-vorbisβ Vorbis (OGG only)
if you don't specify an encoding for the output file, sndfile-convert will try to use the encoding of the input file. but bestie, lowkey that doesn't always work π β because most container formats (like WAV, AIFF, etc.) only support a small subset of encodings (like 16 bit PCM, a-law, Vorbis, etc.). it's giving "we tried our best."
β EXIT STATUS β
sndfile-convert exits 0 on success, and >0 if an error occurs. simple as that, fr fr. π
π«Ά SEE ALSO π«Ά
http://libsndfile.github.io/libsndfile/
π AUTHORS π
Erik de Castro Lopo <erikd@mega-nerd.com>.
okay that's the whole page bestie, you're officially a sndfile-convert girlie now π
this was the Debian edition of the SNDFILE-CONVERT(1) manual, dated November 2, 2014 β slay, mwah, go convert something ππβ¨
π¦ where this page comes from
- alpine 3.22: libsndfile-doc 1.2.2-r2 Β· LGPL-2.1-or-later
- alpine 3.23: libsndfile-doc 1.2.2-r2 Β· LGPL-2.1-or-later
- alpine 3.24: libsndfile-doc 1.2.2-r2 Β· LGPL-2.1-or-later
- arch rolling: libsndfile 1.2.2-4 Β· LGPL-2.1-or-later
- centos-stream 10: libsndfile-utils 1.2.2-7.el10 Β· LGPL-2.1 OR LGPL-3.0
- centos-stream 9: libsndfile-utils 1.0.31-10.el9 Β· LGPLv2+ and GPLv2+ and BSD
- debian bookworm: sndfile-programs 1.2.0-1+deb12u1 Β· LGPL-2.1-or-later
- debian trixie: sndfile-programs 1.2.2-2+deb13u1 Β· LGPL-2.1-or-later
- fedora 43: libsndfile-utils 1.2.2-10.fc43 Β· LGPL-2.1-or-later AND GPL-2.0-or-later AND BSD-3-Clause
- fedora 44: libsndfile-utils 1.2.2-11.fc44 Β· LGPL-2.1-or-later AND GPL-2.0-or-later AND BSD-3-Clause
- nixpkgs unstable: libsndfile 1.2.2
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsndfile-progs 1.2.2-160000.4.1 Β· LGPL-2.1-or-later
- ubuntu jammy: sndfile-programs 1.0.31-2build1 Β· LGPL-2.1-or-later
- ubuntu jammy: sndfile-programs 1.0.31-2ubuntu0.2 Β· LGPL-2.1-or-later
- ubuntu noble: sndfile-programs 1.2.2-1ubuntu5 Β· LGPL-2.1-or-later
- ubuntu noble: sndfile-programs 1.2.2-1ubuntu5.24.04.1 Β· LGPL-2.1-or-later
- ubuntu questing: sndfile-programs 1.2.2-3
- ubuntu resolute: sndfile-programs 1.2.2-4 Β· LGPL-2.1-or-later
- ubuntu stonking: sndfile-programs 1.2.2-4 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms