[KLUG Members] wav file addition
Jamie McCarthy
members@kalamazoolinux.org
Mon, 17 May 2004 18:50:35 -0400
john@bridleman.org (John Bridleman) writes:
> I've got 2 wav files I need to make 1 wav file out of.
>
> What tool(s) can I use to do that? I don't need any fancy
> editor, I just wanna add the second wav file to the end of the
> first one.
Hm, there's probably a better way, but I would guess sox and cat
could handle this. I haven't tried it, but maybe something like:
sox -c 2 -r 44100 -w 1.wav 1.raw
sox -c 2 -r 44100 -w 2.wav 2.raw
cat 1.raw 2.raw > 3.raw
sox -c 2 -r 44100 -w 3.raw 3.wav
I just skimmed its manpage, but I think it will look at file
extensions like that to figure out what it's reading and writing,
and I think the -c -r -w are needed at least in the last step.
If your number of channels, sample rate, or resolution differ,
of course, change those...
--
Jamie McCarthy
http://mccarthy.vg/
jamie@mccarthy.vg