functional.rst 3.68 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
:hidden:`Utility`
~~~~~~~~~~~~~~~~~

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

.. autofunction:: amplitude_to_DB

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

.. autofunction:: DB_to_amplitude


27
28
29
30
31
melscale_fbanks
---------------

.. autofunction:: melscale_fbanks

32
33
34
35
36
linear_fbanks
-------------

.. autofunction:: linear_fbanks

37
38
39
40
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
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
66

Caroline Chen's avatar
Caroline Chen committed
67
68
69
70
71
resample
--------

.. autofunction:: resample

72
73
74
75
76
loudness
--------

.. autofunction:: loudness

77

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

125
.. autofunction:: deemph_biquad
126
127


128
129
dither
------
130

131
.. autofunction:: dither
132

133
134
equalizer_biquad
----------------
135

136
.. autofunction:: equalizer_biquad
137

138
139
140
141
142
filtfilt
--------

.. autofunction:: filtfilt

143
144
flanger
-------
145

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

gain
----

.. autofunction:: gain

highpass_biquad
---------------
155
156

.. autofunction:: highpass_biquad
157

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

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

163
164
lowpass_biquad
--------------
165

166
.. autofunction:: lowpass_biquad
167

168
169
overdrive
---------
170

171
.. autofunction:: overdrive
172

173
174
phaser
------
175

176
.. autofunction:: phaser
177

178
179
riaa_biquad
-----------
180

181
.. autofunction:: riaa_biquad
182

183
184
treble_biquad
-------------
185
186
187

.. autofunction:: treble_biquad

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

191
192
193
:hidden:`vad`
-------------

194
.. autofunction:: vad
195

196
:hidden:`spectrogram`
197
---------------------
198

199
.. autofunction:: spectrogram
200

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

.. autofunction:: inverse_spectrogram

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

.. autofunction:: griffinlim

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

.. autofunction:: phase_vocoder
215

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

.. autofunction:: pitch_shift

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

.. autofunction:: compute_deltas

:hidden:`detect_pitch_frequency`
227
--------------------------------
228
229

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

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

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

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

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

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

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

246
247
248
249
250
251
252
253
:hidden:`Multi-channel`
~~~~~~~~~~~~~~~~~~~~~~~

psd
---

.. autofunction:: psd

254
255
256
257
258
mvdr_weights_souden
-------------------

.. autofunction:: mvdr_weights_souden

259
260
261
262
263
mvdr_weights_rtf
----------------

.. autofunction:: mvdr_weights_rtf

264
265
266
267
268
rtf_evd
-------

.. autofunction:: rtf_evd

269
270
271
272
273
rtf_power
---------

.. autofunction:: rtf_power

274
275
276
277
278
apply_beamforming
-----------------

.. autofunction:: apply_beamforming

279
280
281
282
283
284
285
286
:hidden:`Loss`
~~~~~~~~~~~~~~

rnnt_loss
---------

.. autofunction:: rnnt_loss

287
288
289
290
291
292
293
:hidden:`Metric`
~~~~~~~~~~~~~~~~

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

.. autofunction:: edit_distance