From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from defout.telus.net ([199.185.220.240] helo=priv-edtnes28.telusplanet.net) by speech.braille.uwo.ca with esmtp (Exim 3.35 #1 (Debian)) id 17J29Q-00055g-00 for ; Fri, 14 Jun 2002 21:14:48 -0400 Received: from a7a42593 ([64.180.205.214]) by priv-edtnes28.telusplanet.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with SMTP id <20020615000737.LULZ26462.priv-edtnes28.telusplanet.net@a7a42593> for ; Fri, 14 Jun 2002 18:07:37 -0600 To: speakup@braille.uwo.ca From: Tyler Spivey Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Subject: how to concatenate 2 or more sound files? Message-Id: <20020615000737.LULZ26462.priv-edtnes28.telusplanet.net@a7a42593> Date: Fri, 14 Jun 2002 18:07:37 -0600 Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: speakup@braille.uwo.ca X-Reply-To: Tyler Spivey List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: how do i concatenate two or more sound files together into one sound file? cat * >somefile.wav wouldn't work, because of the wave headers. the files are all in the same format. i found a way of doing it, but it is rather annoying. here's my way, if anyone wants it. head -c 40 something.wav >file.wav this will get the wave header and put it in file.wav wc -c something.wav getst eh size bc size-40 gets the size, minus 40. tail -c size something.wav >>file.wav gets the wave data. size is the size you got with bc. wc -c someother.wav bc size-40 same as above. tail -c size someother.wav >>file.wav same as above. you have file.wav with the two files concatenated. now: sox file.wav file2.wav will convert it into a proper wave file. i wouldn't recommend this, since it is slow, but it works when you need it, if the files are the same format. or at least it should...