简体   繁体   English

连接两个WAV文件,然后在SOX中合并第三个WAV文件

[英]Concatenate two WAV files an then merge a third WAV file in SOX

I have 3 wav files: 1.wav , 2.wav and noise.wav. 我有3个wav文件:1.wav,2.wav和noise.wav。 I want to concatenate 1.wav and 2.wav in output.wav an then output.wav merge with noise.wav with a single SOX command. 我想在output.wav中连接1.wav和2.wav然后使用单个SOX命令将output.wav与noise.wav合并。 I know how to do this in 2 step. 我知道如何分两步完成。 Is there a method to do in one step? 有一种方法可以一步到位吗?

this is how i do it: 我就是这样做的:

sox 1.wav 2.wav output.wav
sox -m output.wav noise.wav output2.wav

After hours and hours of trying finaly i find a way to do this: 经过几个小时的尝试,我找到了一种方法:

this is the anwser: 这是anwser:

sox -m "|sox 1.wav 2.wav -p" noise.wav output.wav 

where 1.wav, 2.wav and noise.wav are file localy stored and output.wav is the output generated by SOX. 其中1.wav,2.wav和noise.wav是文件localy存储,output.wav是SOX生成的输出。

I hope this save others time. 我希望这能节省其他时间。 I serch over the internet for this answer for days and no luck. 我在互联网上搜索这个答案好几天没有运气。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM