【问题标题】:SoX: How to noise gate?SoX:如何噪声门?
【发布时间】:2013-09-24 15:33:39
【问题描述】:

audacity 有一个很好用的噪音门插件。我正在寻找一个等效的命令行 - 但我无法弄清楚 SoX compand 命令来做到这一点。谁能告诉我 sox 相当于 audacity 噪音门吗?例如,我大胆地使用 “以上门限频率:0.0”,级别降低:-12,门限阈值 -48.0,攻击/衰减 250.0 ?

【问题讨论】:

    标签: audio sox audacity


    【解决方案1】:

    您是否尝试过在 SOX 中使用 compand 命令?查看http://sox.sourceforge.net/sox.html,向下滚动到compand 命令部分,看看它在哪里显示:

    In the next example, compand is being used as a noise-gate for when the noise is at 
    a lower level than the signal:
    play infile compand .1,.2 −inf,−50.1,−inf,−50,−50 0 −90 .1
    

    【讨论】:

    • 这很尴尬 - 但我确实尝试过,但无法理解手册。
    【解决方案2】:

    sox man page,您可以破解compand dynamic range compressor 以仅屏蔽噪音

    sox infile outfile compand .1,.2 −inf,−50.1,−inf,−50,−50 0 −90 .1
    

    分解格式:

    .1,.2
    attack1,decay1{,attack2,decay2}
    

    attack 和 decay 设置为 .1 和 .2 的小值,这基本上设置了窗口大小。

    −inf,−50.1,−inf,−50,−50
    [soft-knee-dB:]in-dB1[,out-dB1]{,in-dB2,out-dB2}
    

    这是我们定义噪声门的地方,软拐点的负无穷大,以 dB 为单位设置为 -50.1,输出为负无穷大,然后是 -50 dB 和 -50 dB。这是您调整门电平的地方。如果您想消除更多噪音,请将值更改为 30 dB:

    −inf,−30.1,−inf,−30,−30
    

    如果门太大并且正在剪切内容,则将门阈值降低到 70 dB:

    −inf,−70.1,−inf,−70,−70
    

    在最后一部分

    0 −90 .1
    [gain [initial-volume-dB [delay]]]
    

    最后我们将增益设置为 0,初始音量设置为 -90 dB,延迟设置为 0.1 秒。

    我想很多人(包括我自己)都没有牢牢掌握压扩参数,see for example

    【讨论】:

      【解决方案3】:
      sox noise.wav -n noiseprof | play sound.wav noisered
      

      会像 Audacity 那样做噪音门控。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2013-06-30
        • 1970-01-01
        • 2014-10-25
        • 1970-01-01
        • 2020-06-06
        • 2011-09-20
        • 2017-09-26
        • 2016-02-07
        相关资源
        最近更新 更多