SoX 安裝(Ubuntu+win10)的新手誤區和正確安裝方法。

轉載請聲明出處!

1、緒論

SoX - Sound eXchange 國外開源音頻處理軟件,官網地址:http://sox.sourceforge.net/Main/HomePage。

Welcome to the home of SoX, the Swiss Army knife of sound processing programs.

中文介紹看這裏:https://blog.csdn.net/Damon_X/article/details/51678885

中文手冊看這裏:https://blog.csdn.net/p222p/article/details/77624046

2、Ubuntu安裝我遇到的問題,以及正確安裝方法

作爲一枚語音界新手,第一次遇到要用到sox這個包,下意識認爲是python,然後習慣問了下度娘,結果如下圖,


然後習慣性,pip install sox,安裝成功,run一個shell文件,報錯:./prepare_data.sh: line 21: sox: command not found ,WTF!pip list 看了下,sox(1.3.2)????excuse me?


鍵入 python3,import sox.賣糕的,出錯了!!度娘無果


那就Google唄,sox: command not found,回車,有類似問題,試了試,sudo apt-get install sox .安裝完成,鍵入python3,

import sox  成功。代碼也能跑了。


3、Windows10 的安裝方法

詳見:https://github.com/JoFrhwld/FAVE/wiki/Sox-on-Windows,我試了一下,安裝好exe文件,加入環境變量。


但是python中import 不了


用git run 我的shell文件,閃退,不報錯。我去重啓試試。結果待定

轉載請聲明出處!