1b815c7f3Sopenharmony_ci.Dd November 2, 2014 2b815c7f3Sopenharmony_ci.Dt SNDFILE-CONVERT 1 3b815c7f3Sopenharmony_ci.Os 4b815c7f3Sopenharmony_ci.Sh NAME 5b815c7f3Sopenharmony_ci.Nm sndfile-convert 6b815c7f3Sopenharmony_ci.Nd convert sound files from one format to another 7b815c7f3Sopenharmony_ci.Sh SYNOPSIS 8b815c7f3Sopenharmony_ci.Nm sndfile-convert 9b815c7f3Sopenharmony_ci.Op Fl override-sample-rate Ns = Ns Ar rate 10b815c7f3Sopenharmony_ci.Op Fl endian Ns = Ns Cm little | big | cpu 11b815c7f3Sopenharmony_ci.Op Fl normalize 12b815c7f3Sopenharmony_ci.Op Ar encoding 13b815c7f3Sopenharmony_ci.Ar input 14b815c7f3Sopenharmony_ci.Ar output 15b815c7f3Sopenharmony_ci.Sh DESCRIPTION 16b815c7f3Sopenharmony_ci.Nm 17b815c7f3Sopenharmony_ciconverts sound files from one audio format to another. 18b815c7f3Sopenharmony_ciThe output file is overwritten it it already exists. 19b815c7f3Sopenharmony_ci.Ss Formats 20b815c7f3Sopenharmony_ciThe format of the output file is determined by the filename extension. 21b815c7f3Sopenharmony_ciThe following file formats are currently recognized: 22b815c7f3Sopenharmony_ci.Pp 23b815c7f3Sopenharmony_ci.Bl -tag -compact -width ircam 24b815c7f3Sopenharmony_ci.It wav 25b815c7f3Sopenharmony_ciWAV (Microsoft) 26b815c7f3Sopenharmony_ci.It aif 27b815c7f3Sopenharmony_ciAIFF (Apple/SGI) 28b815c7f3Sopenharmony_ci.It au 29b815c7f3Sopenharmony_ciAU (Sun/NeXT) 30b815c7f3Sopenharmony_ci.It snd 31b815c7f3Sopenharmony_ciAU (Sun/NeXT) 32b815c7f3Sopenharmony_ci.It raw 33b815c7f3Sopenharmony_ciRAW (header-less) 34b815c7f3Sopenharmony_ci.It gsm 35b815c7f3Sopenharmony_ciRAW (header-less) 36b815c7f3Sopenharmony_ci.It vox 37b815c7f3Sopenharmony_ciRAW (header-less) 38b815c7f3Sopenharmony_ci.It paf 39b815c7f3Sopenharmony_ciPAF (Ensoniq PARIS, big-endian) 40b815c7f3Sopenharmony_ci.It fap 41b815c7f3Sopenharmony_ciPAF (Ensoniq PARIS, little-endian) 42b815c7f3Sopenharmony_ci.It svx 43b815c7f3Sopenharmony_ciIFF (Amiga IFF/SVX8/SV16) 44b815c7f3Sopenharmony_ci.It nist 45b815c7f3Sopenharmony_ciSPHERE (NIST SPeech HEader Resources) 46b815c7f3Sopenharmony_ci.It sph 47b815c7f3Sopenharmony_ciSPHERE (NIST SPeech HEader Resources) 48b815c7f3Sopenharmony_ci.It voc 49b815c7f3Sopenharmony_ciVOC (Creative Labs) 50b815c7f3Sopenharmony_ci.It ircam 51b815c7f3Sopenharmony_ciSF (Berkeley/IRCAM/CARL) 52b815c7f3Sopenharmony_ci.It sf 53b815c7f3Sopenharmony_ciSF (Berkeley/IRCAM/CARL) 54b815c7f3Sopenharmony_ci.It w64 55b815c7f3Sopenharmony_ciW64 (SoundFoundry WAVE 64) 56b815c7f3Sopenharmony_ci.It mat 57b815c7f3Sopenharmony_ciMAT4 (GNU Octave 2.0 / Matlab 4.2) 58b815c7f3Sopenharmony_ci.It mat4 59b815c7f3Sopenharmony_ciMAT4 (GNU Octave 2.0 / Matlab 4.2) 60b815c7f3Sopenharmony_ci.It mat5 61b815c7f3Sopenharmony_ciMAT5 (GNU Octave 2.1 / Matlab 5.0) 62b815c7f3Sopenharmony_ci.It pvf 63b815c7f3Sopenharmony_ciPVF (Portable Voice Format) 64b815c7f3Sopenharmony_ci.It xi 65b815c7f3Sopenharmony_ciXI (FastTracker 2) 66b815c7f3Sopenharmony_ci.It htk 67b815c7f3Sopenharmony_ciHTK (HMM Tool Kit) 68b815c7f3Sopenharmony_ci.It sds 69b815c7f3Sopenharmony_ciSDS (Midi Sample Dump Standard) 70b815c7f3Sopenharmony_ci.It avr 71b815c7f3Sopenharmony_ciAVR (Audio Visual Research) 72b815c7f3Sopenharmony_ci.It wavex 73b815c7f3Sopenharmony_ciWAVEX (MS WAVE with WAVEFORMATEX) 74b815c7f3Sopenharmony_ci.It sd2 75b815c7f3Sopenharmony_ciSD2 (Sound Designer II) 76b815c7f3Sopenharmony_ci.It flac 77b815c7f3Sopenharmony_ciFLAC (FLAC Lossless Audio Codec) 78b815c7f3Sopenharmony_ci.It caf 79b815c7f3Sopenharmony_ciCAF (Apple Core Audio File) 80b815c7f3Sopenharmony_ci.It wve 81b815c7f3Sopenharmony_ciWVE (Psion Series 3) 82b815c7f3Sopenharmony_ci.It prc 83b815c7f3Sopenharmony_ciWVE (Psion Series 3) 84b815c7f3Sopenharmony_ci.It ogg 85b815c7f3Sopenharmony_ciOGG (OGG Container format) 86b815c7f3Sopenharmony_ci.It oga 87b815c7f3Sopenharmony_ciOGG (OGG Container format) 88b815c7f3Sopenharmony_ci.It mpc 89b815c7f3Sopenharmony_ciMPC (Akai MPC 2k) 90b815c7f3Sopenharmony_ci.It rf64 91b815c7f3Sopenharmony_ciRF64 (RIFF 64) 92b815c7f3Sopenharmony_ci.El 93b815c7f3Sopenharmony_ci.Ss Options 94b815c7f3Sopenharmony_ciThe following options are recoginzed: 95b815c7f3Sopenharmony_ci.Pp 96b815c7f3Sopenharmony_ci.Bl -tag -compact -width "override-sample-rate=XXXXX" 97b815c7f3Sopenharmony_ci.It Fl override-sample-rate Ns = Ns Ar rate 98b815c7f3Sopenharmony_ciMake the input use sample rate of 99b815c7f3Sopenharmony_ci.Ar rate 100b815c7f3Sopenharmony_ciHz. 101b815c7f3Sopenharmony_ci.It Fl endian Ns = Ns Cm little 102b815c7f3Sopenharmony_ciMake the output file use little endian data. 103b815c7f3Sopenharmony_ci.It Fl endian Ns = Ns Cm big 104b815c7f3Sopenharmony_ciMake the output file use big endian data. 105b815c7f3Sopenharmony_ci.It Fl endian Ns = Ns Cm cpu 106b815c7f3Sopenharmony_ciMake the output file use CPU endianness. 107b815c7f3Sopenharmony_ci.It Fl normalize 108b815c7f3Sopenharmony_ciNormalize the audio data in the output file. 109b815c7f3Sopenharmony_ci.El 110b815c7f3Sopenharmony_ci.Ss Encodings 111b815c7f3Sopenharmony_ciThe optional 112b815c7f3Sopenharmony_ci.Ar encoding 113b815c7f3Sopenharmony_ciparameter allows setting of the data encoding for the output file. 114b815c7f3Sopenharmony_ciThe following encodings are currently supported: 115b815c7f3Sopenharmony_ci.Pp 116b815c7f3Sopenharmony_ci.Bl -tag -compact -width ima-adpcmXX 117b815c7f3Sopenharmony_ci.It Fl pcms8 118b815c7f3Sopenharmony_cisigned 8 bit pcm 119b815c7f3Sopenharmony_ci.It Fl pcmu8 120b815c7f3Sopenharmony_ciunsigned 8 bit pcm 121b815c7f3Sopenharmony_ci.It Fl pcm16 122b815c7f3Sopenharmony_ci16 bit pcm 123b815c7f3Sopenharmony_ci.It Fl pcm24 124b815c7f3Sopenharmony_ci24 bit pcm 125b815c7f3Sopenharmony_ci.It Fl pcm32 126b815c7f3Sopenharmony_ci32 bit pcm 127b815c7f3Sopenharmony_ci.It Fl float32 128b815c7f3Sopenharmony_ci32 bit floating point 129b815c7f3Sopenharmony_ci.It Fl ulaw 130b815c7f3Sopenharmony_ciULAW 131b815c7f3Sopenharmony_ci.It Fl alaw 132b815c7f3Sopenharmony_ciALAW 133b815c7f3Sopenharmony_ci.It Fl ima-adpcm 134b815c7f3Sopenharmony_ciIMA ADPCM (WAV only) 135b815c7f3Sopenharmony_ci.It Fl ms-adpcm 136b815c7f3Sopenharmony_ciMS ADPCM (WAV only) 137b815c7f3Sopenharmony_ci.It Fl gsm610 138b815c7f3Sopenharmony_ciGSM6.10 (WAV only) 139b815c7f3Sopenharmony_ci.It Fl dwvw12 140b815c7f3Sopenharmony_ci12 bit DWVW (AIFF only) 141b815c7f3Sopenharmony_ci.It Fl dwvw16 142b815c7f3Sopenharmony_ci16 bit DWVW (AIFF only) 143b815c7f3Sopenharmony_ci.It Fl dwvw24 144b815c7f3Sopenharmony_ci24 bit DWVW (AIFF only) 145b815c7f3Sopenharmony_ci.It Fl vorbis 146b815c7f3Sopenharmony_ciVorbis (OGG only) 147b815c7f3Sopenharmony_ci.El 148b815c7f3Sopenharmony_ci.Pp 149b815c7f3Sopenharmony_ciIf no encoding is specified for the output file, 150b815c7f3Sopenharmony_ci.Nm 151b815c7f3Sopenharmony_ciwill try to use the encoding of the input file. 152b815c7f3Sopenharmony_ciThis will not always work as most container formats 153b815c7f3Sopenharmony_ci(e.g. WAV, AIFF etc) only support a small subset of encodings 154b815c7f3Sopenharmony_ci(e.g. 16 bit PCM, a-law, Vorbis etc). 155b815c7f3Sopenharmony_ci.Sh EXIT STATUS 156b815c7f3Sopenharmony_ci.Ex -std 157b815c7f3Sopenharmony_ci.Sh SEE ALSO 158b815c7f3Sopenharmony_ci.Lk http://libsndfile.github.io/libsndfile/ 159b815c7f3Sopenharmony_ci.Sh AUTHORS 160b815c7f3Sopenharmony_ci.An Erik de Castro Lopo Aq Mt erikd@mega-nerd.com . 161