transforms.rst 2.43 KB
Newer Older
1
2
3
.. role:: hidden
    :class: hidden-section

4
5
6
7
8
torchaudio.transforms
======================

.. currentmodule:: torchaudio.transforms

9
10
11
12
13
14
15
16
Transforms are common audio transforms. They can be chained together using :class:`torch.nn.Sequential`


:hidden:`Spectrogram`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: Spectrogram

Vincent QB's avatar
Vincent QB committed
17
  .. automethod:: forward
18

19
20
21
:hidden:`GriffinLim`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Artyom Astafurov's avatar
Artyom Astafurov committed
22
.. autoclass:: GriffinLim
23
24
25

  .. automethod:: forward

26
27
28
29
30
:hidden:`AmplitudeToDB`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: AmplitudeToDB

Vincent QB's avatar
Vincent QB committed
31
  .. automethod:: forward
32
33
34

:hidden:`MelScale`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35

36
.. autoclass:: MelScale
37

Vincent QB's avatar
Vincent QB committed
38
  .. automethod:: forward
39

moto's avatar
moto committed
40
41
42
43
44
45
46
47
:hidden:`InverseMelScale`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: InverseMelScale

  .. automethod:: forward


48
49
:hidden:`MelSpectrogram`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
50

51
.. autoclass:: MelSpectrogram
52

Vincent QB's avatar
Vincent QB committed
53
  .. automethod:: forward
54

55
:hidden:`MFCC`
moto's avatar
moto committed
56
~~~~~~~~~~~~~~
57

58
59
.. autoclass:: MFCC

Vincent QB's avatar
Vincent QB committed
60
  .. automethod:: forward
61

62
63
64
65
66
67
68
:hidden:`LFCC`
~~~~~~~~~~~~~~

.. autoclass:: LFCC

  .. automethod:: forward

69
:hidden:`MuLawEncoding`
moto's avatar
moto committed
70
~~~~~~~~~~~~~~~~~~~~~~~
71
72
73

.. autoclass:: MuLawEncoding

Vincent QB's avatar
Vincent QB committed
74
  .. automethod:: forward
75
76

:hidden:`MuLawDecoding`
moto's avatar
moto committed
77
~~~~~~~~~~~~~~~~~~~~~~~
78
79
80

.. autoclass:: MuLawDecoding

Vincent QB's avatar
Vincent QB committed
81
  .. automethod:: forward
82
83

:hidden:`Resample`
moto's avatar
moto committed
84
~~~~~~~~~~~~~~~~~~
85
86
87

.. autoclass:: Resample

Vincent QB's avatar
Vincent QB committed
88
  .. automethod:: forward
89
90

:hidden:`ComplexNorm`
moto's avatar
moto committed
91
~~~~~~~~~~~~~~~~~~~~~
92
93
94

.. autoclass:: ComplexNorm

Vincent QB's avatar
Vincent QB committed
95
  .. automethod:: forward
96
97

:hidden:`ComputeDeltas`
moto's avatar
moto committed
98
~~~~~~~~~~~~~~~~~~~~~~~
99
100
101

.. autoclass:: ComputeDeltas

Vincent QB's avatar
Vincent QB committed
102
  .. automethod:: forward
103
104

:hidden:`TimeStretch`
moto's avatar
moto committed
105
~~~~~~~~~~~~~~~~~~~~~
106
107
108

.. autoclass:: TimeStretch

Vincent QB's avatar
Vincent QB committed
109
  .. automethod:: forward
110

111
112
113
114
115
116
117
:hidden:`PitchShift`
~~~~~~~~~~~~~~~~~~~~

.. autoclass:: PitchShift

  .. automethod:: forward

Tomás Osório's avatar
Tomás Osório committed
118
:hidden:`Fade`
moto's avatar
moto committed
119
~~~~~~~~~~~~~~
Tomás Osório's avatar
Tomás Osório committed
120
121
122
123
124

.. autoclass:: Fade

  .. automethod:: forward

125
:hidden:`FrequencyMasking`
moto's avatar
moto committed
126
~~~~~~~~~~~~~~~~~~~~~~~~~~
127
128
129

.. autoclass:: FrequencyMasking

Vincent QB's avatar
Vincent QB committed
130
  .. automethod:: forward
131
132

:hidden:`TimeMasking`
moto's avatar
moto committed
133
~~~~~~~~~~~~~~~~~~~~~
134
135
136

.. autoclass:: TimeMasking

Vincent QB's avatar
Vincent QB committed
137
  .. automethod:: forward
Tomás Osório's avatar
Tomás Osório committed
138
139

:hidden:`Vol`
moto's avatar
moto committed
140
~~~~~~~~~~~~~
Tomás Osório's avatar
Tomás Osório committed
141
142
143
144

.. autoclass:: Vol

  .. automethod:: forward
Artyom Astafurov's avatar
Artyom Astafurov committed
145

wanglong001's avatar
wanglong001 committed
146
:hidden:`SlidingWindowCmn`
moto's avatar
moto committed
147
~~~~~~~~~~~~~~~~~~~~~~~~~~
wanglong001's avatar
wanglong001 committed
148
149
150
151

.. autoclass:: SlidingWindowCmn

  .. automethod:: forward
Artyom Astafurov's avatar
Artyom Astafurov committed
152

Vincent QB's avatar
Vincent QB committed
153
:hidden:`SpectralCentroid`
moto's avatar
moto committed
154
~~~~~~~~~~~~~~~~~~~~~~~~~~
Vincent QB's avatar
Vincent QB committed
155
156
157
158
159

.. autoclass:: SpectralCentroid

  .. automethod:: forward

Artyom Astafurov's avatar
Artyom Astafurov committed
160
:hidden:`Vad`
moto's avatar
moto committed
161
~~~~~~~~~~~~~
Artyom Astafurov's avatar
Artyom Astafurov committed
162
163
164
165

.. autoclass:: Vad

  .. automethod:: forward
moto's avatar
moto committed
166
167
168
169
170
171


References
~~~~~~~~~~

.. footbibliography::