crossfading a group of audio files with sox splice

和自甴很熟 提交于 2019-12-05 16:02:55

I have gotten most of the way there with

sox --combine concatenate *.wav _merge.wav splice -q 3,1

The splice effect at the end places the beginning of the cross-fade at 3 seconds into the first file, and uses 1 second as cross-fade duration (half second at beginning and end of two files). This method is a temporary fix as I can choose to include only ~3 second files in my output (using other methods). A better answer would figure out how to grab duration of current file and substitute that in place of the 3.

sox --combine concatenate *.wav _merge.wav splice -q $(soxi −D {}),1

If the {} here selected the current item (as in find), that would do it. But that doesn't seem to work.

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