How to quickly trim audio files

I can’t take credit for this post. Yes, I am the one writing the post, but the software I downloaded is just so incredibly powerful and easy to use that I feel guilty telling anyone how to use it. Still, I am about to shave a few minutes off your setup time so here goes…

1. Download SoX for your platform. I am going to use Windows for this “How To”
Here’s a link: http://sox.sourceforge.net/
2. Open the folder you installed SoX to. I chose D:\tools\sox because I like to put all of my favorite command line tools in one place.
3. Right click the example batch file and choose edit.  This will open Notepad and you can replace all of the text with the following:
cd %~dp0
mkdir "sox output"
FOR %%A IN (%*) DO sox %%A "sox output/%%~nxA" fade 0 10 .5 rate -v 48000
pause

5. Save and close the batch file
4. Now just drag and drop any number of audio files onto the batch file and it will create a folder called “sox output” and save the first 10 seconds of each file to the new folder. The files will fade out quickly at the end so that you won’t hear any annoying clicks/pops that you would if you had just trimmed the file.

The full documentation for SoX comes with the installer as a PDF and includes lots of examples.

Have fun!

Author: sirspot

I write software, love my wife and kids, do various house projects, play video games when I have time, and could use a little more sleep