Sound eXchange - How to Use the Options in SoX
SoX allows you to work with raw and self-describing audio files. The former has a header that describes the data inside, while the latter does not. Rather, it must infer the audio characteristics from the input file. The following sections describe how to use the various options in SoX. We'll cover the differences between the two formats. Let's look at each in turn. Using the "-t" option to specify the type of the input file is a good way to avoid this problem.
The filenames of your input and output audio must not be the same. Generally, audio filenames contain the filename extension. However, effect names do not. Therefore, you should avoid naming them the same way. However, you can use the "newfile" command to start a new effect chain. If the first effect has finished processing, then the audio data will continue on to the next one. The filenames of the following effects will be part of the new effects chain.
To start processing a file, type "play" or "rec". Invocations of these commands will create a new audio file with all the input channels combined. Using multiple invocations of SoX will also enable you to undo the merge. This method is useful if you want to mix two mono files to make a stereo file. The first and second files would become the left and right channels in a stereo file.