1下载
http://sox.sourceforge.net/
2编译
autoreconf -i 之后生成configure
./configure 生成makefile
make
make install 生成可执行程序和SOX动态/静态库
3安装附加库
参考:https://audiodigitale.eu/?p=25
brew install opencore-amr libao flac two-lame libtool mad libid3tag libmagic libvorbis libpng libsndfile wavpack lame
OpencoreAMR-NB/WB http://sourceforge.net/projects/opencore-amr AMR-NB/WB http://www.penguin.cz/~utx/amr AO http://xiph.org/ao FLAC http://flac.sourceforge.net LADSPA http://www.ladspa.org Lame MP3 encoder http://lame.sourceforge.net Twolame MP2 enc. http://www.twolame.org libltdl http://www.gnu.org/software/libtool MAD MP3 decoder http://www.underbit.com/products/mad MP3 ID3 tags https://sourceforge.net/projects/mad/files/libid3tag/ Magic http://www.darwinsys.com/file Ogg Vorbis http://www.vorbis.com Opus http://www.opus-codec.org/ PNG http://www.libpng.org/pub/png zlib Sndfile http://www.mega-nerd.com/libsndfile WavPack http://www.wavpack.com
4 安装过程用到的一些编译工具:
auto-archive,glibtool, autoconfig 等,根据编译错误,查询需要安装的编译工具
5 安装过程中出现configure编译不过:
找到编译不过的选项,可以先删除;
6官网能力集
The current release handles the following audio file formats:
|
|
The audio effects/tools included in this release are as follows:
- Tone/filter effects
- allpass: RBJ all-pass biquad IIR filter
- bandpass: RBJ band-pass biquad IIR filter
- bandreject: RBJ band-reject biquad IIR filter
- band: SPKit resonator band-pass IIR filter
- bass: Tone control: RBJ shelving biquad IIR filter
- equalizer: RBJ peaking equalisation biquad IIR filter
- firfit+: FFT convolution FIR filter using given freq. response (W.I.P.)
- highpass: High-pass filter: Single pole or RBJ biquad IIR
- hilbert: Hilbert transform filter (90 degrees phase shift)
- lowpass: Low-pass filter: single pole or RBJ biquad IIR
- sinc: Sinc-windowed low/high-pass/band-pass/reject FIR
- treble: Tone control: RBJ shelving biquad IIR filter
- Production effects
- chorus: Make a single instrument sound like many
- delay: Delay one or more channels
- echo: Add an echo
- echos: Add a sequence of echos
- flanger: Stereo flanger
- overdrive: Non-linear distortion
- phaser: Phase shifter
- repeat: Loop the audio a number of times
- reverb: Add reverberation
- reverse: Reverse the audio (to search for Satanic messages ;-)
- tremolo: Sinusoidal volume modulation
- Volume/level effects
- compand: Signal level compression/expansion/limiting
- contrast: Phase contrast volume enhancement
- dcshift: Apply or remove DC offset
- fade: Apply a fade-in and/or fade-out to the audio
- gain: Apply gain or attenuation; normalise/equalise/balance/headroom
- loudness: Gain control with ISO 226 loudness compensation
- mcompand: Multi-band compression/expansion/limiting
- norm: Normalise to 0dB (or other)
- vol: Adjust audio volume
- Editing effects
- pad: Pad (usually) the ends of the audio with silence
- silence: Remove portions of silence from the audio
- splice: Perform the equivalent of a cross-faded tape splice
- trim: Cuts portions out of the audio
- vad: Voice activity detector
- Mixing effects
- channels: Auto mix or duplicate to change number of channels
- divide+: Divide sample values by those in the 1st channel (W.I.P.)
- remix: Produce arbitrarily mixed output channels
- swap: Swap stereo channels
- Pitch/tempo effects
- bend: Bend pitch at given times without changing tempo
- pitch: Adjust pitch (= key) without changing tempo
- speed: Adjust pitch & tempo together
- stretch: Adjust tempo without changing pitch (simple alg.)
- tempo: Adjust tempo without changing pitch (WSOLA alg.)
- Mastering effects
- dither: Add dither noise to increase quantisation SNR
- rate: Change audio sampling rate
- Specialised filters/mixers
- deemph: ISO 908 CD de-emphasis (shelving) IIR filter
- earwax: Process CD audio to best effect for headphone use
- noisered: Filter out noise from the audio
- oops: Out Of Phase Stereo (or `Karaoke') effect
- riaa: RIAA vinyl playback equalisation
- Analysis `effects'
- noiseprof: Produce a DFT profile of the audio (use with noisered)
- spectrogram: graph signal level vs. frequency & time (needs `libpng')
- stat: Enumerate audio peak & RMS levels, approx. freq., etc.
- stats: Multichannel aware `stat'
- Miscellaneous effects
- ladspa: Apply LADSPA plug-in effects e.g. CMT (Computer Music Toolkit)
- synth: Synthesise/modulate audio tones or noise signals
- newfile: Create a new output file when an effects chain ends.
- restart: Restart 1st effects chain when multiple chains exist.
- Low-level signal processing effects
- biquad: 2nd-order IIR filter using externally provided coefficients
- downsample: Reduce sample rate by discarding samples
- fir: FFT convolution FIR filter using externally provided coefficients
- upsample: Increase sample rate by zero stuffing
Multiple audio files can be combined (and then further processed with effects) using any one of the following combiner methods:
- concatenate
- mix
- merge: E.g. two mono files to one stereo file
- sequence: For playing multiple audio files/streams