functional.rst 2.81 KB
Newer Older
jamarshon's avatar
jamarshon committed
1
2
3
4
.. role:: hidden
    :class: hidden-section

torchaudio.functional
Vincent QB's avatar
Vincent QB committed
5
=====================
jamarshon's avatar
jamarshon committed
6
7
8
9
10

.. currentmodule:: torchaudio.functional

Functions to perform common audio operations.

11
12
:hidden:`Filtering`
~~~~~~~~~~~~~~~~~~~
jamarshon's avatar
jamarshon committed
13
14


15
16
allpass_biquad
--------------
jamarshon's avatar
jamarshon committed
17

18
.. autofunction:: allpass_biquad
jamarshon's avatar
jamarshon committed
19

20
21
band_biquad
-----------
jamarshon's avatar
jamarshon committed
22

23
.. autofunction:: band_biquad
jamarshon's avatar
jamarshon committed
24

25
26
bandpass_biquad
---------------
jamarshon's avatar
jamarshon committed
27

28
.. autofunction:: bandpass_biquad
jamarshon's avatar
jamarshon committed
29

30
31
bandreject_biquad
-----------------
jamarshon's avatar
jamarshon committed
32

33
.. autofunction:: bandreject_biquad
jamarshon's avatar
jamarshon committed
34

35
36
bass_biquad
-----------
jamarshon's avatar
jamarshon committed
37

38
.. autofunction:: bass_biquad
jamarshon's avatar
jamarshon committed
39

40
41
biquad
------
jamarshon's avatar
jamarshon committed
42

43
.. autofunction:: biquad
jamarshon's avatar
jamarshon committed
44

45
46
contrast
--------
jamarshon's avatar
jamarshon committed
47

48
.. autofunction:: contrast
jamarshon's avatar
jamarshon committed
49

50
51
dcshift
-------
jamarshon's avatar
jamarshon committed
52

53
.. autofunction:: dcshift
jamarshon's avatar
jamarshon committed
54

55
56
deemph_biquad
-------------
jamarshon's avatar
jamarshon committed
57

58
.. autofunction:: deemph_biquad
59
60


61
62
dither
------
63

64
.. autofunction:: dither
65

66
67
equalizer_biquad
----------------
68

69
.. autofunction:: equalizer_biquad
70

71
72
flanger
-------
73

74
75
76
77
78
79
80
81
82
.. autofunction:: flanger

gain
----

.. autofunction:: gain

highpass_biquad
---------------
83
84

.. autofunction:: highpass_biquad
85

86
87
lfilter
-------
moto's avatar
moto committed
88

89
.. autofunction:: lfilter
moto's avatar
moto committed
90

91
92
lowpass_biquad
--------------
93

94
.. autofunction:: lowpass_biquad
95

96
97
overdrive
---------
98

99
.. autofunction:: overdrive
100

101
102
phaser
------
103

104
.. autofunction:: phaser
105

106
107
riaa_biquad
-----------
108

109
.. autofunction:: riaa_biquad
110

111
112
treble_biquad
-------------
113
114
115

.. autofunction:: treble_biquad

jimchen90's avatar
jimchen90 committed
116

117
118
vad
---
jimchen90's avatar
jimchen90 committed
119

120
.. autofunction:: vad
121

122
123
:hidden:`spectrogram`
~~~~~~~~~~~~~~~~~~~~~
124

125
.. autofunction:: spectrogram
126

127
128
129
130
131
:hidden:`griffinlim`
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: griffinlim

132
133
:hidden:`amplitude_to_DB`
~~~~~~~~~~~~~~~~~~~~~~~~~
134

135
.. autofunction:: amplitude_to_DB
136

137
138
139
140
141
:hidden:`DB_to_amplitude`
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: DB_to_amplitude

142
143
:hidden:`create_fb_matrix`
~~~~~~~~~~~~~~~~~~~~~~~~~~
144

145
.. autofunction:: create_fb_matrix
146

147
148
:hidden:`create_dct`
~~~~~~~~~~~~~~~~~~~~
149

150
.. autofunction:: create_dct
151

152
153
:hidden:`mu_law_encoding`
~~~~~~~~~~~~~~~~~~~~~~~~~
154

155
.. autofunction:: mu_law_encoding
156

157
158
:hidden:`mu_law_decoding`
~~~~~~~~~~~~~~~~~~~~~~~~~
159

160
.. autofunction:: mu_law_decoding
161

162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
:hidden:`complex_norm`
~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: complex_norm

:hidden:`angle`
~~~~~~~~~~~~~~~

.. autofunction:: angle

:hidden:`magphase`
~~~~~~~~~~~~~~~~~~

.. autofunction:: magphase

:hidden:`phase_vocoder`
~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: phase_vocoder
181

182
:hidden:`mask_along_axis`
Vincent QB's avatar
Vincent QB committed
183
~~~~~~~~~~~~~~~~~~~~~~~~~
184
185
186
187

.. autofunction:: mask_along_axis

:hidden:`mask_along_axis_iid`
Vincent QB's avatar
Vincent QB committed
188
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
189
190
191
192

.. autofunction:: mask_along_axis_iid

:hidden:`compute_deltas`
Vincent QB's avatar
Vincent QB committed
193
~~~~~~~~~~~~~~~~~~~~~~~~
194
195
196
197

.. autofunction:: compute_deltas

:hidden:`detect_pitch_frequency`
Vincent QB's avatar
Vincent QB committed
198
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
199
200

.. autofunction:: detect_pitch_frequency
wanglong001's avatar
wanglong001 committed
201
202
203
204

:hidden:`sliding_window_cmn`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

205
.. autofunction:: sliding_window_cmn
moto's avatar
moto committed
206
207
208
209
210

:hidden:`compute_kaldi_pitch`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: compute_kaldi_pitch