Mads Kjeldgaard


SoX tutorial: SoX on Android

In this tutorial, I will cover how to install and setup SoX on android devices using Termux. Termux is a free “Android terminal emulator and Linux environment app that works directly with no rooting or setup required”. Basically it is a command line interface for your Android device and works like a small linux distribution. It even includes a package management system. And if you get something like an OTG-dongle you can even connect a keyboard and/or a class compliant sound interface.

SoX tutorial: Batch processing audio on the command line

To make full use of SoX’ potential for batch processing we will be using a bit of command line wizardry. The idea is to put our sox command inside of a for-loop which iterates over all audio files in the folder you are currently in. If you are unsure of what folder your terminal is executing from, you can write pwd to see it’s full path and ls to see the folder’s contents.

SoX tutorial: Split by silence

SoX has a very effective and rather precise way of semi-automatically chopping a sound file into smaller sound files. Let us say you have a sound file containing many different sounds seperated by a bit of silence in between. It could be a series of drum hits that you have recorded off of a drum machine. To make these sounds easy to use, you most probably need them as seperate sound files so you can load them into a sampler or other software as a sample bank of sorts.

SoX tutorial: Command line tape music (an introduction)

SoX is a very powerful command line audio processing tool. You can think of it as a sort of command line equivalent of Audacity but with a text based interface that let’s you perform powerful audio operations by typing just a few words in your computer’s terminal. I came across SoX via the live coding community where it is a popular tool for chopping sound files (by detecting silence) and batch processing large quantities of audio files (eg.