From 21e7706732fa6dbdc89c673e58eb7aa25c49fcbd Mon Sep 17 00:00:00 2001 From: Vincent Quenneville-Belair Date: Thu, 18 Feb 2021 14:40:14 -0500 Subject: [PATCH 1/2] follow code-style from below. --- README.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 288df4621d..2f65df59ec 100644 --- a/README.md +++ b/README.md @@ -90,18 +90,14 @@ This will require libsox v14.3.2 or above.
Click here for the examples on how to install SoX -OSX (Homebrew): ```bash +# OSX (Homebrew) brew install sox -``` -Linux (Ubuntu): -```bash +# Linux (Ubuntu) sudo apt-get install sox libsox-dev libsox-fmt-all -``` -Anaconda -```bash +# Anaconda conda install -c conda-forge sox ``` From 79b1a063c075a45f9339a8b90d74290f0b8e94cd Mon Sep 17 00:00:00 2001 From: Vincent Quenneville-Belair Date: Tue, 23 Feb 2021 19:29:10 -0500 Subject: [PATCH 2/2] remove link to libsox option. --- README.md | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/README.md b/README.md index 2f65df59ec..a044289a00 100644 --- a/README.md +++ b/README.md @@ -83,35 +83,7 @@ conda install -y -c pytorch-nightly torchaudio ### From Source -If your system configuration is not among the supported configurations -above, you can build torchaudio from source. - -This will require libsox v14.3.2 or above. - -
Click here for the examples on how to install SoX - -```bash -# OSX (Homebrew) -brew install sox - -# Linux (Ubuntu) -sudo apt-get install sox libsox-dev libsox-fmt-all - -# Anaconda -conda install -c conda-forge sox -``` - -
- -```bash -# Linux -python setup.py install - -# OSX -MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install -``` - -Alternatively, the build process can build libsox and some optional codecs statically and torchaudio can link them, by setting environment variable `BUILD_SOX=1`. +The build process builds libsox and some codecs that torchaudio need to link to. This is achieve by setting the environment variable `BUILD_SOX=1`. The build process will fetch and build libmad, lame, flac, vorbis, opus, and libsox before building extension. This process requires `cmake` and `pkg-config`. ```bash