1

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.

Jesus Ginard
  • 41
  • 2
  • 5

2 Answers2

2

I'm sorry, but the answer (1) is wrong. The questioner wants a two-channel file with one sound file in the left channel, and the other in the right channel. I tried the command given, and it produces a 1-channel output.wav with both input files mixed into a single channel.

user60381
  • 61
  • 3
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. As others have noted, the result will be a mono file.