Skip to content
ComputerComa edited this page Sep 7, 2022 · 9 revisions

Downloading SoX

You can find binaries and installers for SoX on its sourceforge downloads page The current version the last time this page was updated was 14.4.1. Download the version of SoX appropriate for your system.

Adding SoX to your path

First, find the directory where SoX is installed. By default, this is probably C:\Program Files (x86)\sox-14-4-1 or C:\Program Files\sox-14-4-1

This directory needs to be added to your PATH environment variable. Open a command prompt by pressing the Windows key and typing cmd.exe (on Vista or later), or by choosing "Run" from the Start Menu and type cmd (on earlier versions).

Type path into the command prompt and it should return your PATH variable (PATH= followed by a list of directories). To temporarily add SoX to your PATH variable, type the following command (replace the C:\Program Files (x86)\sox-14-4-1 with your SoX directory if necessary):

set PATH=%PATH%;C:\Program Files (x86)\sox-14-4-1

Type path again, and it should return the same list of directories as before, but with the string ;C:\Program Files (x86)\sox-14-4-1 added to the very end. If it returns anything else (e.g., if it only returns the SoX directory), don't proceed to the next step (close the command prompt window and start over). If it returns the same list plus SoX, you can add SoX permanently by using the setx command instead of set:

setx PATH "%PATH%;C:\Program Files (x86)\sox-14-4-1"

On Windows XP, you'll need to install the Windows XP SP2 Support Tools before you can do this.

Adding Sox to Path Alternate version -- GUI Method

• Open The start Menu and search for Edit the system environment variables

image

• Click the first entry

• On the page that comes up click the entry Environment Variables

image

Then page that comes up should look like this.

image

Under the User Variables Section look for an entry called Path

image

Select the entry and click Edit

Another window will show up with a list of entries.

image

Click new and add the path to sox.

image

Click ok and repeat the procedure for the system Variables section.

Checking for success

To check that this worked, open a new command prompt and type sox. If this is successful, it will return information on using SoX, but otherwise it should return "sox is not recognized".