How to use sox in windows

泄露秘密 提交于 2019-11-30 14:49:57

问题


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.`

回答1:


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.



回答2:


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



来源:https://stackoverflow.com/questions/17667491/how-to-use-sox-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!