windowscommand-linesox

How to use sox in windows


I am installing sox in windows, but I get an error entering the following code: sox 001.wav 001.dat in the command line.

The error is:

`sox is not recognized as an internal or external command, operable program or batch file.`

Solution

  • Add the Sox folder to your PATH and then restart your terminal.

    1. Go to My Computer → Properties → Advanced System Settings → Environment Variables → System variables.
    2. Select Path.
    3. Click Edit → New :
    4. Add this: C:\Program Files (x86)\sox-<CHECK YOUR VERSION NUMBER>\
      • As indicated in the example path, make sure to check what version of Sox you have installed by actually navigating to your Program Files (x86) folder and looking for a folder that starts with sox, for example sox-14-4-2.
    5. Restart your terminal.
      • Note that if you're using an IDE, you may need to restart the IDE to have the Path variables update.