The library is cross-platform and currently supports Linux, macOS, Windows, iOS and Android systems.
To install the audioFlux package, Python >=3.6, using the released python package.
Using PyPI:
$ pip install audioflux
Using Anaconda:
$ conda install -c tanky25 -c conda-forge audioflux
To compile iOS on a Mac, Xcode Command Line Tools must exist in the system:
- Install the full Xcode package
- install Xcode Command Line Tools when triggered by a command or run xcode-select command:
$ xcode-select --install
Enter the audioFlux
project scripts
directory and switch to the current directory, run the following script
to build and compile:
$ ./build_iOS.sh
Build and compile successfully, the project build compilation results are in the build
folder
The current system development environment needs to be installed android NDK, ndk version>=16,after installation, set the environment variable ndk path.
For example, ndk installation path is ~/Android/android-ndk-r16b
:
$ export NDK_ROOT=~/Android/android-ndk-r16b
$ export PATH=$NDK_ROOT:$PATH
Android audioFlux
build uses fftw library to accelerate performance, compile the
single-floating point version for android platform. fftw lib successful compilation, copy to audioFlux
project scripts/android/fftw3
directory.
Enter the audioFlux
project scripts
directory and switch to the current directory, run the following script
to build and compile:
$ ./build_android.sh
Build and compile successfully, the project build compilation results are in the build
folder
-
Installing fft3w lib dependencies on Linux
For Ubuntu:
sudo apt install libfftw3-dev
For CentOS:
sudo yum install -y fftw3-devel
-
Python setup:
$ python setup.py build $ python setup.py install
-
Installing dependencies on macOS
Install Command Line Tools for Xcode. Even if you install Xcode from the app store you must configure command-line compilation by running:
xcode-select --install
-
Python setup:
$ python setup.py build $ python setup.py install
Building from source is currently not supported. Only supports pip installation. If you need to build from source, The easiest way to build audioFlux is by cross-compilation on Linux using MinGW.