The stat option can provide lot of statistical information about a given audio file. In the following example, the 1st command (-0.5) will be louder than the 2nd command (-0.1) $ sox -v -0.5 srcfile.wav test05.wav Lower Negative number will get more soft. If we need to lower the volume on some files, we can lower them by using negative numbers. Increase Volume $ sox -v 2.0 foo.wav bar.wav Decrease Volume Option -v is used to change (increase or decrease ) the volume. Increase and Decrease Volume Using Option -v The command below will extract first 10 seconds from input.wav and stored it in output.wav $ sox input.wav output.wav trim 0 10 3.
With the -m flag, sox adds two input files together to produce its output. Combine Multiple Audio Files to Single File Make sure to download the corresponding SoX utility for your platform from the SoX – Sound eXchange download page. One of the major benefits of a command-line audio/music tool is easy to use in scripts to perform more complex tasks in batch mode.Īll the 15 examples mentioned below can be used to manipulate Audio files on Unix, Windows and MacOS. To get the list of all supported formats, execute sox -h from the command line.
In general, audio data is described by following four characteristics:
This article is part of the on-going Software for Geeks series.