sox是一个跨平台的命令行工具,可以进行音频格式转换,也可以应用各种音效到文件中,还支持在大多数平台进行播放与录制,堪称音频界的瑞士军刀。接下来,我们详细介绍sox库支持的音频格式、支持的音效、常用的API、常用的命令行。
目录
一、支持的音频格式
- Apple/SGI AIFF files
- SUN .au files(PCM, u-law, A-law)
- CDDA (光碟数字音频格式)
- AMR-WB & AMR-NB (需要ibamrwb & libamrnb库)
- MP2/MP3 (需要ibmp3lame库)
- MP4, AAC, AC3, WAVPACK, AMR-NB files (需要ffmpeg库)
- AVI, WMV, Ogg Theora, MPEG video files (需要ffmpeg库)
- Ogg Vorbis files (需要Ogg Vorbis库)
- FLAC files (需要libFLAC库)
- Microsoft .WAV file
二、支持的音效
1、音质效果
- 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
- 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
2、产生效果
- 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
- tremolo: Sinusoidal volume modulation
3、音量效果
- 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: Norm
1156




被折叠的 条评论
为什么被折叠?



