Re: [linux-audio-user] Tool for concatening wav files?

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] Tool for concatening wav files?
From: LinuxMedia (linuxmedia4_AT_netscape.net)
Date: Fri Mar 05 2004 - 23:05:26 EET


>>I have looked at the sox man page and did not find
>>any clues on how to concatenate wav files with sox.
>>An example command line would be welcome.

> ecasound would be better :)

I agree with Steve. There's plenty of ways to aid in what you're trying
to do (depending how complex you want to be). If you're just trying to
"glue" fileA.wav to the end of fileB.wav, the you can use "ecalength" to
find the length of fileA.wav....

[bash] ecalength fileA.wav
--> 213.542 (seconds)

then do...

ecasound -i:fileA.wav -t:213.542 -o:fileB.wav -y:213.542

I've tried this, but haven't really listened for accuracy.

 From the ecasound man page...

-t:seconds
Sets processing time in seconds (doesn't have to be an integer value).
If processing time isn't set, engine stops when all inputs are finished.

-y:seconds
Sets starting position for last specified input/output.

For more advanced "splicing" of files into other files, you can use
ecasound in "interactive mode" (ecasound -c) to be able to do simple
commands. Ultimatly, you could obtain position markers....

ecasound -c -i:fileA.wav -o:/dev/dsp
ecasound ('h' for help)> t
(Start playing fileA.wav)
ecasound ('h' for help)> getpos
(return the current position of fileA.wav)

Rocco


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat Mar 06 2004 - 04:16:03 EET