How to merge several audio files using sox

后端 未结 2 651
走了就别回头了
走了就别回头了 2021-01-12 14:14

I use this command to merge two audio files into one using sox:

sox end.mp3 -p pad 6 0 | sox - -m start.mp3 output.mp3

I was wondering how

相关标签:
2条回答
  • 2021-01-12 14:37

    You can do it with one invocation of sox like this:

    sox -m in1.mp3 in2.mp3 in3.mp3 out.mp3
    

    If you want to combine this with the pad effect you need to be clearer about what you want.

    0 讨论(0)
  • 2021-01-12 14:38

    To combine mix and effects (pad, trim etc) use the following:

    sox -m "|sox end.mp3 -p pad 6 0" start.mp3 output.mp3
    

    The general pattern is:

    sox -m input1 input2 ... inputN output
    

    where inputX can be either a filename or a pipe in quotes

    "|sox end.mp3 -p pad 6"
    
    0 讨论(0)
提交回复
热议问题