Skip to content
Split sound files containing stretches of silence into bits
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This trivial program takes a sound file (wav, flac or anything else
libsndfile can read) and looks for large blocks of silence.  If it
finds these blocks, it splits the file into new files that doesn't
contain these silences.

The raison d'etre here is that lots and lots and lots of CDs have
"hidden tracks" tacked on to the end of the last track.  Typically,
the final listed song has ten minutes of silence, and then there's the
"hidden" track.

It gets boring really fast.

Hence this program.

It's copyright (c) 2003-2019 Lars Magne Ingebrigtsen <>.
It's released under the GNU General Public License.

You need libsndfile (version 1.x) to compile this program.  It's
only been compiled under Debian GNU/Linux, and your mileage may vary.

  --length: The minimum number of seconds of silence a block of silence is.
            Default 60.
  --silence: How silent silence is.  The default value is 5.
  --pattern: sprintf pattern to use when creating output files.  The default
  	     value is "unsilence-%02d.wav".

If a block of silence was found, the command returns true.  If not,
You can’t perform that action at this time.