From: Tyler Spivey <tspivey8@telus.net>
To: speakup@braille.uwo.ca
Subject: how to concatenate 2 or more sound files?
Date: Fri, 14 Jun 2002 18:07:37 -0600 [thread overview]
Message-ID: <20020615000737.LULZ26462.priv-edtnes28.telusplanet.net@a7a42593> (raw)
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...
next reply other threads:[~ UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
Tyler Spivey [this message]
` Octavian Rasnita
` Charles Hallenbeck
[not found] <20020615000737.LULZ26462.priv-edtnes28.telusplanet.net@a7a 42593>
` Adam Myrow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020615000737.LULZ26462.priv-edtnes28.telusplanet.net@a7a42593 \
--to=tspivey8@telus.net \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).