Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
2e25279
Add torchcodec mock with wav loading and saving
samanklesaria Jul 18, 2025
fe375f4
Merge branch 'main' into test_wav_hack
NicolasHug Jul 28, 2025
7b47628
Remove io directory
samanklesaria Aug 11, 2025
a300221
Let load and save rely on *_with_torchcodec
NicolasHug Jul 16, 2025
07e3b77
install torchcodec in doc job
NicolasHug Jul 16, 2025
92719d3
Add docstring and arguments for load and save
samanklesaria Aug 12, 2025
4a98ee5
Revise docstring
samanklesaria Aug 13, 2025
7b02754
Add typing imports
samanklesaria Aug 13, 2025
74edc0a
Try ffmpeg>4
samanklesaria Aug 13, 2025
80f5eb7
Install conda deps before pip deps
samanklesaria Aug 13, 2025
7f063a6
Add scipy hack for load and save
samanklesaria Aug 13, 2025
700c6c9
Only import scipy during testing
samanklesaria Aug 13, 2025
6995b21
Revert "Install conda deps before pip deps"
samanklesaria Aug 13, 2025
4ab5993
Revert "Try ffmpeg>4"
samanklesaria Aug 13, 2025
43c4602
Revert torchcodec installation changes
samanklesaria Aug 13, 2025
f74f004
Use existing wav_utils
samanklesaria Aug 13, 2025
89ca133
Remove _backend folder
samanklesaria Aug 13, 2025
50a538a
Merge branch 'remove_backends' into remove_io_dir
samanklesaria Aug 13, 2025
953fc65
Support frame_offset and num_frames in load hack
samanklesaria Aug 13, 2025
9ab06f7
Merge branch 'torchcodec_loading' into remove_backends
samanklesaria Aug 13, 2025
bea8d82
Merge branch 'remove_backends' into remove_io_dir
samanklesaria Aug 13, 2025
dd3ff90
Use rand instead of randn for test_save_channels_first
samanklesaria Aug 14, 2025
6013c36
Merge branch 'torchcodec_loading' into remove_backends
samanklesaria Aug 14, 2025
872310b
Merge branch 'remove_backends' into remove_io_dir
samanklesaria Aug 14, 2025
72539b9
Merge branch 'test_wav_hack' into torchcodec_loading
samanklesaria Aug 14, 2025
c94e011
Remove pytest-aware code in src
samanklesaria Aug 14, 2025
b622d82
Remove torchcodec version check
samanklesaria Aug 14, 2025
93351a2
Fix bugs in torchcodec mock
samanklesaria Aug 14, 2025
5407163
Skip test_load_save_torchcodec
samanklesaria Aug 14, 2025
bd7eb52
Correct call to pytest skip
samanklesaria Aug 14, 2025
c3d0cc2
Remove torchcodec installation
samanklesaria Aug 14, 2025
d10fc19
Add torchcodec to build installation
samanklesaria Aug 15, 2025
92fee51
Remove redundant wav_utils
samanklesaria Aug 15, 2025
34d39ed
Merge branch 'torchcodec_loading' into remove_backends
samanklesaria Aug 15, 2025
0f6ce2d
Merge branch 'remove_backends' into remove_io_dir
samanklesaria Aug 15, 2025
03b441e
Merge branch 'main' into remove_backends
samanklesaria Aug 18, 2025
4e0a9f1
Merge branch 'remove_backends' into remove_io_dir
samanklesaria Aug 18, 2025
8ac0720
Remove io export
samanklesaria Aug 18, 2025
6b7d78c
Remove io import
samanklesaria Aug 18, 2025
f2c21e6
Remove torchaudio.io references in docs
samanklesaria Aug 18, 2025
cb14121
Remove sox directories
samanklesaria Aug 18, 2025
dd0608e
Remove sox in CMakelists
samanklesaria Aug 18, 2025
3f376b1
Merge branch 'main' into remove_sox
samanklesaria Aug 18, 2025
1baec40
Remove sox-dependent files
samanklesaria Aug 19, 2025
85acfcc
Merge branch 'main' into remove_sox
NicolasHug Aug 19, 2025
158bfc4
Remove IS_SOX_AVAILABLE
samanklesaria Aug 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ else()
endif()

add_subdirectory(src/libtorchaudio)
if (BUILD_SOX)
add_subdirectory(third_party/sox)
add_subdirectory(src/libtorchaudio/sox)
endif()
if (USE_FFMPEG)
if (DEFINED ENV{FFMPEG_ROOT})
add_subdirectory(third_party/ffmpeg/single)
Expand Down
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ model implementations and application components.
models
models.decoder
pipelines
sox_effects
compliance.kaldi
kaldi_io
utils
Expand Down
21 changes: 0 additions & 21 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,6 @@ Optional Dependencies
files you installed follow this naming scheme, (and then make sure
that they are in one of the directories listed in library search path.)

* `SoX <https://sox.sourceforge.net/>`__

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

Starting version 2.1, TorchAudio requires separately installed libsox.

If dynamic linking is causing an issue, you can set the environment variable
``TORCHAUDIO_USE_SOX=0``, and TorchAudio won't use SoX.

.. note::

TorchAudio looks for a library file with unversioned name, that is ``libsox.so``
for Linux, and ``libsox.dylib`` for macOS. Some package managers install the library
file with different name. For example, aptitude on Ubuntu installs ``libsox.so.3``.
To have TorchAudio link against it, you can create a symbolic link to it with name
``libsox.so`` (and put the symlink in a library search path).

.. note::
TorchAudio is tested on libsox 14.4.2. (And it is unlikely that other
versions would work.)

* `SoundFile <https://pypi.org/project/PySoundFile/>`__

Required to use ``backend="soundfile"`` in `I/O functions <./torchaudio.html#i-o>`__.
Expand Down
34 changes: 0 additions & 34 deletions docs/source/sox_effects.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/torchaudio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ The following table summarizes the backends.
to retrieve the supported codecs.

This backend Supports various protocols, such as HTTPS and MP4, and file-like objects.
* - 2
- SoX
- Linux, macOS
- Use :py:func:`~torchaudio.utils.sox_utils.list_read_formats` and
:py:func:`~torchaudio.utils.sox_utils.list_write_formats`
to retrieve the supported codecs.

This backend does *not* support file-like objects.
* - 3
- SoundFile
- Linux, macOS, Windows
Expand Down
3 changes: 0 additions & 3 deletions examples/libtorchaudio/augmentation/CMakeLists.txt

This file was deleted.

35 changes: 0 additions & 35 deletions examples/libtorchaudio/augmentation/README.md

This file was deleted.

79 changes: 0 additions & 79 deletions examples/libtorchaudio/augmentation/create_jittable_pipeline.py

This file was deleted.

22 changes: 0 additions & 22 deletions examples/libtorchaudio/augmentation/main.cpp

This file was deleted.

2 changes: 0 additions & 2 deletions examples/source_separation/conv_tasnet/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ def train(args):
_LG.info("%s", args)

args.save_dir.mkdir(parents=True, exist_ok=True)
if "sox_io" in torchaudio.list_audio_backends():
torchaudio.set_audio_backend("sox_io")

start_epoch = 1
if args.resume:
Expand Down
25 changes: 0 additions & 25 deletions src/libtorchaudio/sox/CMakeLists.txt

This file was deleted.

Loading
Loading