Skip to content

Commit a645da6

Browse files
Remove sox (#4046)
1 parent bdd9c72 commit a645da6

File tree

34 files changed

+1
-2373
lines changed

34 files changed

+1
-2373
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,6 @@ else()
166166
endif()
167167

168168
add_subdirectory(src/libtorchaudio)
169-
if (BUILD_SOX)
170-
add_subdirectory(third_party/sox)
171-
add_subdirectory(src/libtorchaudio/sox)
172-
endif()
173169
if (USE_FFMPEG)
174170
if (DEFINED ENV{FFMPEG_ROOT})
175171
add_subdirectory(third_party/ffmpeg/single)

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ model implementations and application components.
102102
models
103103
models.decoder
104104
pipelines
105-
sox_effects
106105
compliance.kaldi
107106
kaldi_io
108107
utils

docs/source/installation.rst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -70,27 +70,6 @@ Optional Dependencies
7070
files you installed follow this naming scheme, (and then make sure
7171
that they are in one of the directories listed in library search path.)
7272

73-
* `SoX <https://sox.sourceforge.net/>`__
74-
75-
Required to use ``backend="sox"`` in `I/O functions <./torchaudio.html#i-o>`__.
76-
77-
Starting version 2.1, TorchAudio requires separately installed libsox.
78-
79-
If dynamic linking is causing an issue, you can set the environment variable
80-
``TORCHAUDIO_USE_SOX=0``, and TorchAudio won't use SoX.
81-
82-
.. note::
83-
84-
TorchAudio looks for a library file with unversioned name, that is ``libsox.so``
85-
for Linux, and ``libsox.dylib`` for macOS. Some package managers install the library
86-
file with different name. For example, aptitude on Ubuntu installs ``libsox.so.3``.
87-
To have TorchAudio link against it, you can create a symbolic link to it with name
88-
``libsox.so`` (and put the symlink in a library search path).
89-
90-
.. note::
91-
TorchAudio is tested on libsox 14.4.2. (And it is unlikely that other
92-
versions would work.)
93-
9473
* `SoundFile <https://pypi.org/project/PySoundFile/>`__
9574

9675
Required to use ``backend="soundfile"`` in `I/O functions <./torchaudio.html#i-o>`__.

docs/source/sox_effects.rst

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/source/torchaudio.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ The following table summarizes the backends.
7878
to retrieve the supported codecs.
7979

8080
This backend Supports various protocols, such as HTTPS and MP4, and file-like objects.
81-
* - 2
82-
- SoX
83-
- Linux, macOS
84-
- Use :py:func:`~torchaudio.utils.sox_utils.list_read_formats` and
85-
:py:func:`~torchaudio.utils.sox_utils.list_write_formats`
86-
to retrieve the supported codecs.
87-
88-
This backend does *not* support file-like objects.
8981
* - 3
9082
- SoundFile
9183
- Linux, macOS, Windows

examples/libtorchaudio/augmentation/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/libtorchaudio/augmentation/README.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

examples/libtorchaudio/augmentation/create_jittable_pipeline.py

Lines changed: 0 additions & 79 deletions
This file was deleted.

examples/libtorchaudio/augmentation/main.cpp

Lines changed: 0 additions & 22 deletions
This file was deleted.

examples/source_separation/conv_tasnet/train.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ def train(args):
189189
_LG.info("%s", args)
190190

191191
args.save_dir.mkdir(parents=True, exist_ok=True)
192-
if "sox_io" in torchaudio.list_audio_backends():
193-
torchaudio.set_audio_backend("sox_io")
194192

195193
start_epoch = 1
196194
if args.resume:

0 commit comments

Comments
 (0)