Mix .L and .R files into a stereo file using SOX in bulk

耗尽温柔 提交于 2019-12-11 13:13:54

问题


I have a folder full of WAV files with separate L and R channels. I've been using SOX for some things like changing the sample rate of the audio files inside a specific folder using this code:

for file in *.wav; do sox $file -r 44100 -b 24 converted/$(basename $file) -V; done

For example, I have these two files that I want to merge: - CLOSE_1_02.L.wav - CLOSE_1_02.R.wav I would like to merge them in a stereo file (L in the left channel and R in the right channel) with the name: "CLOSE_1_02.wav". Can anybody help me?

Thanks.


回答1:


from link:

sox -M input.l.wav input.r.wav output.wav

will merge input.l.wav and input.r.wav into output.wav.



来源:https://stackoverflow.com/questions/34397617/mix-l-and-r-files-into-a-stereo-file-using-sox-in-bulk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!