functional.rst 3.36 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

moto's avatar
moto committed
7
8
.. py:module:: torchaudio.functional

jamarshon's avatar
jamarshon committed
9
10
11
12
.. currentmodule:: torchaudio.functional

Functions to perform common audio operations.

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
:hidden:`Utility`
~~~~~~~~~~~~~~~~~

amplitude_to_DB
---------------

.. autofunction:: amplitude_to_DB

DB_to_amplitude
---------------

.. autofunction:: DB_to_amplitude

create_fb_matrix
----------------

.. autofunction:: create_fb_matrix

31
32
33
34
35
melscale_fbanks
---------------

.. autofunction:: melscale_fbanks

36
37
38
39
40
linear_fbanks
-------------

.. autofunction:: linear_fbanks

41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
create_dct
----------

.. autofunction:: create_dct

mask_along_axis
---------------

.. autofunction:: mask_along_axis

mask_along_axis_iid
-------------------

.. autofunction:: mask_along_axis_iid

mu_law_encoding
---------------

.. autofunction:: mu_law_encoding

mu_law_decoding
---------------

.. autofunction:: mu_law_decoding

apply_codec
-----------

.. autofunction:: apply_codec
70

Caroline Chen's avatar
Caroline Chen committed
71
72
73
74
75
resample
--------

.. autofunction:: resample

76

77
78
:hidden:`Filtering`
~~~~~~~~~~~~~~~~~~~
jamarshon's avatar
jamarshon committed
79
80


81
82
allpass_biquad
--------------
jamarshon's avatar
jamarshon committed
83

84
.. autofunction:: allpass_biquad
jamarshon's avatar
jamarshon committed
85

86
87
band_biquad
-----------
jamarshon's avatar
jamarshon committed
88

89
.. autofunction:: band_biquad
jamarshon's avatar
jamarshon committed
90

91
92
bandpass_biquad
---------------
jamarshon's avatar
jamarshon committed
93

94
.. autofunction:: bandpass_biquad
jamarshon's avatar
jamarshon committed
95

96
97
bandreject_biquad
-----------------
jamarshon's avatar
jamarshon committed
98

99
.. autofunction:: bandreject_biquad
jamarshon's avatar
jamarshon committed
100

101
102
bass_biquad
-----------
jamarshon's avatar
jamarshon committed
103

104
.. autofunction:: bass_biquad
jamarshon's avatar
jamarshon committed
105

106
107
biquad
------
jamarshon's avatar
jamarshon committed
108

109
.. autofunction:: biquad
jamarshon's avatar
jamarshon committed
110

111
112
contrast
--------
jamarshon's avatar
jamarshon committed
113

114
.. autofunction:: contrast
jamarshon's avatar
jamarshon committed
115

116
117
dcshift
-------
jamarshon's avatar
jamarshon committed
118

119
.. autofunction:: dcshift
jamarshon's avatar
jamarshon committed
120

121
122
deemph_biquad
-------------
jamarshon's avatar
jamarshon committed
123

124
.. autofunction:: deemph_biquad
125
126


127
128
dither
------
129

130
.. autofunction:: dither
131

132
133
equalizer_biquad
----------------
134

135
.. autofunction:: equalizer_biquad
136

137
138
139
140
141
filtfilt
--------

.. autofunction:: filtfilt

142
143
flanger
-------
144

145
146
147
148
149
150
151
152
153
.. autofunction:: flanger

gain
----

.. autofunction:: gain

highpass_biquad
---------------
154
155

.. autofunction:: highpass_biquad
156

157
158
lfilter
-------
moto's avatar
moto committed
159

160
.. autofunction:: lfilter
moto's avatar
moto committed
161

162
163
lowpass_biquad
--------------
164

165
.. autofunction:: lowpass_biquad
166

167
168
overdrive
---------
169

170
.. autofunction:: overdrive
171

172
173
phaser
------
174

175
.. autofunction:: phaser
176

177
178
riaa_biquad
-----------
179

180
.. autofunction:: riaa_biquad
181

182
183
treble_biquad
-------------
184
185
186

.. autofunction:: treble_biquad

187
188
189
:hidden:`Feature Extractions`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

190
191
192
:hidden:`vad`
-------------

193
.. autofunction:: vad
194

195
:hidden:`spectrogram`
196
---------------------
197

198
.. autofunction:: spectrogram
199

200
201
202
203
204
:hidden:`inverse_spectrogram`
-----------------------------

.. autofunction:: inverse_spectrogram

205
:hidden:`griffinlim`
206
--------------------
207
208
209

.. autofunction:: griffinlim

210
:hidden:`phase_vocoder`
211
-----------------------
212
213

.. autofunction:: phase_vocoder
214

215
:hidden:`pitch_shift`
216
---------------------
217
218
219

.. autofunction:: pitch_shift

220
:hidden:`compute_deltas`
221
------------------------
222
223
224
225

.. autofunction:: compute_deltas

:hidden:`detect_pitch_frequency`
226
--------------------------------
227
228

.. autofunction:: detect_pitch_frequency
wanglong001's avatar
wanglong001 committed
229
230

:hidden:`sliding_window_cmn`
231
----------------------------
wanglong001's avatar
wanglong001 committed
232

233
.. autofunction:: sliding_window_cmn
moto's avatar
moto committed
234
235

:hidden:`compute_kaldi_pitch`
236
-----------------------------
moto's avatar
moto committed
237
238

.. autofunction:: compute_kaldi_pitch
Vincent QB's avatar
Vincent QB committed
239
240

:hidden:`spectral_centroid`
241
---------------------------
Vincent QB's avatar
Vincent QB committed
242
243

.. autofunction:: spectral_centroid
moto's avatar
moto committed
244

245
246
247
248
249
250
251
252
:hidden:`Loss`
~~~~~~~~~~~~~~

rnnt_loss
---------

.. autofunction:: rnnt_loss

253
254
255
256
257
258
259
260
:hidden:`Metric`
~~~~~~~~~~~~~~~~

edit_distance
-------------

.. autofunction:: edit_distance

moto's avatar
moto committed
261
262
263
264
References
~~~~~~~~~~

.. footbibliography::