Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.`
like image 855
MSI Avatar asked Jul 16 '13 03:07

MSI


People also ask

How do I use SoX audio?

Audio recorder SoX includes a very handy way of recording audio using the rec command. The simplest use is to type rec filename which will start recording from the default input until you stop it by pressing ctrl-c in the terminal window.

What does SoX command do?

SoX is a command-line audio processing tool, particularly suited to making quick, simple edits and to batch processing. If you need an interactive, graphical audio editor, use audacity(1).

What is SoX effect?

SoX reads and writes audio files in most popular formats and can optionally apply effects to them. It can combine multiple input sources, synthesise audio, and, on many systems, act as a general purpose audio player or a multi-track audio recorder.

What is SoX package?

Package: sox description: SoX (also known as Sound eXchange) translates sound files between different file formats, and optionally applies various sound effects. SoX is intended as the Swiss Army knife of sound processing tools. It doesn't do anything very well, but sooner or later it comes in very handy.


2 Answers

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.
like image 117
MSI Avatar answered Oct 14 '22 17:10

MSI


I entered my sox directory folder and used './sox' command instead of just 'sox' and it worked.

like image 45
azizbro Avatar answered Oct 14 '22 15:10

azizbro