sox


Introduction:

SOX is a program for the manipulation of sound data.

SOX can convert audio data from one file format to another.
It can add effects or filters to a sound recording. It can convert
an audio file from one sampling rate to another. It can extract
a specified portion of the data to a new file. It can play or
record audio files.

Web Site:

SOX homepage:

http://sox.sourceforge.net/Main/HomePage

Reference:

Usage:

On any ARC cluster, check the installation details
by typing "module spider sox".

SOX requires that the appropriate modules be loaded before it can be run.
One version of the appropriate commands for use on NewRiver is:

module purge
module load gcc/5.2.0
module load sox/14.4.2
    

Examples:

The following batch file takes a 20 second recording of Bach and extracts
a 10 second clip starting 5 seconds from the beginning.

#! /bin/bash
#
#PBS -l walltime=00:05:00
#PBS -l nodes=1:ppn=1
#PBS -W group_list=newriver
#PBS -q open_q
#PBS -j oe
#
cd $PBS_O_WORKDIR
#
module purge
module load gcc/5.2.0
module load sox/14.4.2
#
sox bach20.wav bach10.wav trim 5 10

A complete set of files to carry out a similar process are available in
sox_example.tar