Hi guys,
If you want to use scikits.audiolab which sylvain suggests, the following steps might save your time.
The way to have a good install on OSX is to use MacPorts and pip, macports is for installing libsndfile, and pip is for installing scikits.audiolab through pypi.
Here are the steps:
Download and install macports:
Download and install pip:
For short, you need to download the package and run "sh
setuptools-0.6c11-py2.7.egg" in your terminal. Beware of your python version, normally 2.7.
don't bother with that curl sentence, it's just for downlong the get-pip.py. You can directly download get-pip.py file right above that.
3. run the file as written in that page, remember to sudo it.
Then you should firstly install the libsndfile by macports:
sudo port install libsndfile +universal
this will install the libsndfile for x86 and x64 architecture, this is important or you will only get the x64 version and you will get error when doing import scikits.audiolab.
Lastly, you can install the audiolab, by:
sudo pip install scikits.audiolab
Hope this can help you out.
Directly download the libsndfile source codes from its official site and do the configure make install routine will have some problems. The first is the "missing carbon.h" problem, because it should be #include <Carbon/Carbon.h> in its source file. And I don't know how to make it build universally. You can try to solve this problem in this way if you have time.
shaoduo