Sound - SOX: How can I make a 180 degrees phase shifted version of an audio file/ stream?

时间:2015-07-28 16:59:51

标签: audio command-line-interface sox

I'm trying to get a 180 degrees phase shifted waves that effectively cancels the sound if mixed with or played in sync with?

Please limit the answers to sox, the 'Swiss Army knife of sound processing programs'.

1 个答案:

答案 0 :(得分:2)

您可以将-v选项与负值结合使用。使用-1,您将获得您正在寻找的新信号。

例如,您可以合成余弦信号:

sox -n cos.wav synth 3 sine 500

然后使用-v选项更改其阶段:

sox -v -1 cos.wav sin.wav

如果你将2信号合并在一起

sox -m cos.wav sin.wav sum.wav

您将看到您已获得空信号