transforms.rst 2.35 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

:hidden:`MuLawEncoding`
moto's avatar
moto committed
63
~~~~~~~~~~~~~~~~~~~~~~~
64
65
66

.. autoclass:: MuLawEncoding

Vincent QB's avatar
Vincent QB committed
67
  .. automethod:: forward
68
69

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

.. autoclass:: MuLawDecoding

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

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

.. autoclass:: Resample

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

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

.. autoclass:: ComplexNorm

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

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

.. autoclass:: ComputeDeltas

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

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

.. autoclass:: TimeStretch

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

104
105
106
107
108
109
110
:hidden:`PitchShift`
~~~~~~~~~~~~~~~~~~~~

.. autoclass:: PitchShift

  .. automethod:: forward

Tomás Osório's avatar
Tomás Osório committed
111
:hidden:`Fade`
moto's avatar
moto committed
112
~~~~~~~~~~~~~~
Tomás Osório's avatar
Tomás Osório committed
113
114
115
116
117

.. autoclass:: Fade

  .. automethod:: forward

118
:hidden:`FrequencyMasking`
moto's avatar
moto committed
119
~~~~~~~~~~~~~~~~~~~~~~~~~~
120
121
122

.. autoclass:: FrequencyMasking

Vincent QB's avatar
Vincent QB committed
123
  .. automethod:: forward
124
125

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

.. autoclass:: TimeMasking

Vincent QB's avatar
Vincent QB committed
130
  .. automethod:: forward
Tomás Osório's avatar
Tomás Osório committed
131
132

:hidden:`Vol`
moto's avatar
moto committed
133
~~~~~~~~~~~~~
Tomás Osório's avatar
Tomás Osório committed
134
135
136
137

.. autoclass:: Vol

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

wanglong001's avatar
wanglong001 committed
139
:hidden:`SlidingWindowCmn`
moto's avatar
moto committed
140
~~~~~~~~~~~~~~~~~~~~~~~~~~
wanglong001's avatar
wanglong001 committed
141
142
143
144

.. autoclass:: SlidingWindowCmn

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

Vincent QB's avatar
Vincent QB committed
146
:hidden:`SpectralCentroid`
moto's avatar
moto committed
147
~~~~~~~~~~~~~~~~~~~~~~~~~~
Vincent QB's avatar
Vincent QB committed
148
149
150
151
152

.. autoclass:: SpectralCentroid

  .. automethod:: forward

Artyom Astafurov's avatar
Artyom Astafurov committed
153
:hidden:`Vad`
moto's avatar
moto committed
154
~~~~~~~~~~~~~
Artyom Astafurov's avatar
Artyom Astafurov committed
155
156
157
158

.. autoclass:: Vad

  .. automethod:: forward
moto's avatar
moto committed
159
160
161
162
163
164


References
~~~~~~~~~~

.. footbibliography::