设为首页 收藏本站
查看: 2354|回复: 0

[经验分享] 音频界的瑞士军刀 --- SoX

[复制链接]

尚未签到

发表于 2015-11-25 09:22:05 | 显示全部楼层 |阅读模式
          今天我给大家介绍一款自称是音频处理界的瑞士军刀的一款开源软件,SoX - Sound eXchange。引用主页上介绍的原话:
          Welcome to the home of SoX, the Swiss Army knife of sound processing programs.
  该软件的主页是http://sox.sourceforge.net/,文章介绍不详细的地方大家可以翻阅其主页。
  
        SoX是一个跨平台(Windows, Linux, MacOS X, etc.)命令行程序,用于各种格式的转换,播放和各种音频格式,以及给音频加入特效。 下图是一个运行的实例。
DSC0000.jpg


接下来,到了解剖这个瑞士军刀的时候了!
一、软件支持各种常见的音频格式,这也是该软件的一大卖点。

  • Raw files in various binary formats
  • Raw textual data
  • Amiga 8svx files
  • Apple/SGI AIFF files
  • SUN .au files

    • PCM, u-law, A-law
    • G7xx ADPCM files (read only)
    • mutant DEC .au files
    • NeXT .snd files

  • AVR files
  • CDDA (Compact Disc Digital Audio format)
  • CVS and VMS files (continuous variable slope)
  • Grandstream ring-tone files
  • GSM files
  • HTK files
  • LPC-10 files
  • Macintosh HCOM files
  • Amiga MAUD files
  • AMR-WB & AMR-NB (with optional libamrwb & libamrnb libraries)
  • MP2/MP3 (with optional libmad, libtwolame and libmp3lame libraries)
  • MP4, AAC, AC3, WAVPACK, AMR-NB files (with optional ffmpeg library)
  • AVI, WMV, Ogg Theora, MPEG video files (with optional ffmpeg library)


  • Ogg Vorbis files (with optional Ogg Vorbis libraries)
  • FLAC files (with optional libFLAC)
  • IRCAM SoundFile files
  • NIST SPHERE files
  • Turtle beach SampleVision files
  • Sounder & Soundtool (DOS) files
  • Yamaha TX-16W sampler files
  • SoundBlaster .VOC files
  • Dialogic/OKI ADPCM files (.VOX)
  • Microsoft .WAV files

    • PCM, floating point
    • u-law, A-law, MS ADPCM, IMA (DMI) ADPCM
    • GSM
    • RIFX (big endian)

  • WavPack files (with optional libwavpack library)
  • Psion (palmtop) A-law WVE files and Record voice notes
  • Maxis XA Audio files

    • EA ADPCM (read support only, for now)

  • Pseudo formats that allow direct playing/recording from most audio devices
  • The "null" pseudo-file that reads and writes from/to nowhere
二、常见的音效和音频处理

  • 音调/滤波特效

    • 全通: RBJ all-pass biquad IIR filter
    • 带通: RBJ band-pass biquad IIR filter
    • 带阻: RBJ band-reject biquad IIR filter
    • 通带: SPKit resonator band-pass IIR filter
    • 低音: Tone control: RBJ shelving biquad IIR filter
    • 高音: Tone control: RBJ shelving biquad IIR filter
    • 均衡: RBJ peaking equalisation biquad IIR filter
    • FFTFIR滤波: FFT convolution FIR filter using given freq. response (W.I.P.)
    • 高通: High-pass filter: Single pole or RBJ biquad IIR
    • 希尔伯特滤波器: Hilbert transform filter (90 degrees phase shift)
    • 低通: Low-pass filter: single pole or RBJ biquad IIR
    • sinc滤波器: Sinc-windowed low/high-pass/band-pass/reject FIR

  • 附加特效

    • 合唱: Make a single instrument sound like many
    • 延时: Delay one or more channels
    • 回声: Add an echo
    • 多回声: Add a sequence of echos
    • 法兰效应: Stereo flanger
    • 过载: Non-linear distortion
    • 相移: Phase shifter
    • 重复: Loop the audio a number of times
    • 混响: Add reverberation
    • 翻转: Reverse the audio (to search for Satanic messages ;-)
    • 颤音: Sinusoidal volume modulation

  • 音量幅度特效

    • 幅度变化: Signal level compression/expansion/limiting
    • 对比化: Phase contrast volume enhancement
    • 去直流: Apply or remove DC offset
    • 淡入淡出: Apply a fade-in and/or fade-out to the audio
    • 增益变化: Apply gain or attenuation; normalise/equalise/balance/headroom
    • 响度控制: Gain control with ISO 226 loudness compensation
    • 多带幅度变化: Multi-band compression/expansion/limiting
    • 归一化: Normalise to 0dB (or other)
    • 音量调节: Adjust audio volume

  • 编辑特效

    • 拉长: Pad (usually) the ends of the audio with silence
    • 去除静音: Remove portions of silence from the audio
    • 结合: Perform the equivalent of a cross-faded tape splice
    • 裁剪: Cuts portions out of the audio
    • VAD: Voice activity detector

  • 混音特效

    • 声道混音: Auto mix or duplicate to change number of channels
    • 分声道: Divide sample values by those in the 1st channel (W.I.P.)
    • 任意输出混音: Produce arbitrarily mixed output channels
    • 翻转声道: Swap stereo channels

  • 音调节拍特效

    • 弯曲声调: Bend pitch at given times without changing tempo
    • 变调: Adjust pitch (= key) without changing tempo
    • 变速: Adjust pitch & tempo together
    • 拉伸压缩: Adjust tempo without changing pitch (simple alg.)
    • 变节拍: Adjust tempo without changing pitch (WSOLA alg.)

  • 高级特效

    • 加入噪声: Add dither noise to increase quantisation SNR
    • 重采样: Change audio sampling rate

  • 特殊滤波器和混音器

    • 去加重: ISO 908 CD de-emphasis (shelving) IIR filter
    • 耳机增强: Process CD audio to best effect for headphone use
    • 去噪声: Filter out noise from the audio
    • 卡拉ok效应: Out Of Phase Stereo (or `Karaoke') effect
    • RIAA: RIAA vinyl playback equalisation

  • 分析


    • 噪声分析: Produce a DFT profile of the audio (use with noisered)
    • 频谱分析: graph signal level vs. frequency & time (needs `libpng')
    • 状态分析: Enumerate audio peak & RMS levels, approx. freq., etc.
    • 多声道状态: Multichannel aware `stat'

  • 多方面效应

    • LADSPA : Apply LADSPA plug-in effects e.g. CMT (Computer Music Toolkit)
    • 合成声音: Synthesise/modulate audio tones or noise signals
    • 新文件: Create a new output file when an effects chain ends.
    • 重试: Restart 1st effects chain when multiple chains exist.

  • 低音量处理特效

    • 滤波: 2nd-order IIR filter using externally provided coefficients
    • 降采样: Reduce sample rate by discarding samples
    • fir滤波: FFT convolution FIR filter using externally provided coefficients
    • 升采样: Increase sample rate by zero stuffing


  




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-143275-1-1.html 上篇帖子: UVa 10763 下篇帖子: sendmail 服务
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表