sox_effects.rst 1.02 KB
Newer Older
1
.. _sox_effects:
2

David Pollack's avatar
David Pollack committed
3
4
5
6
7
torchaudio.sox_effects
======================

.. currentmodule:: torchaudio.sox_effects

8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.. warning::

   The :py:class:`SoxEffect` and :py:class:`SoxEffectsChain` classes are deprecated. Please migrate to :func:`apply_effects_tensor` and :func:`apply_effects_file`.

Resource initialization / shutdown
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: init_sox_effects

.. autofunction:: shutdown_sox_effects

Listing supported effects
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: effect_names

Applying effects
~~~~~~~~~~~~~~~~

moto's avatar
moto committed
27
28
Apply SoX effects chain on torch.Tensor or on file and load as torch.Tensor.

29
30
31
Applying effects on Tensor
--------------------------

moto's avatar
moto committed
32
33
.. autofunction:: apply_effects_tensor

34
35
36
Applying effects on file
------------------------

moto's avatar
moto committed
37
38
.. autofunction:: apply_effects_file

39
40
Legacy
~~~~~~
moto's avatar
moto committed
41

42
43
SoxEffect
---------
44

David Pollack's avatar
David Pollack committed
45
46
47
.. autoclass:: SoxEffect
  :members:

48
49
SoxEffectsChain
---------------
50

David Pollack's avatar
David Pollack committed
51
52
.. autoclass:: SoxEffectsChain
  :members: append_effect_to_chain, sox_build_flow_effects, clear_chain, set_input_file