functional.rst 3.32 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
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
:hidden:`Utility`
~~~~~~~~~~~~~~~~~

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

.. autofunction:: amplitude_to_DB

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

.. autofunction:: DB_to_amplitude

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

.. autofunction:: create_fb_matrix

29
30
31
32
33
melscale_fbanks
---------------

.. autofunction:: melscale_fbanks

34
35
36
37
38
linear_fbanks
-------------

.. autofunction:: linear_fbanks

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
66
67
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
68

Caroline Chen's avatar
Caroline Chen committed
69
70
71
72
73
resample
--------

.. autofunction:: resample

74

75
76
:hidden:`Filtering`
~~~~~~~~~~~~~~~~~~~
jamarshon's avatar
jamarshon committed
77
78


79
80
allpass_biquad
--------------
jamarshon's avatar
jamarshon committed
81

82
.. autofunction:: allpass_biquad
jamarshon's avatar
jamarshon committed
83

84
85
band_biquad
-----------
jamarshon's avatar
jamarshon committed
86

87
.. autofunction:: band_biquad
jamarshon's avatar
jamarshon committed
88

89
90
bandpass_biquad
---------------
jamarshon's avatar
jamarshon committed
91

92
.. autofunction:: bandpass_biquad
jamarshon's avatar
jamarshon committed
93

94
95
bandreject_biquad
-----------------
jamarshon's avatar
jamarshon committed
96

97
.. autofunction:: bandreject_biquad
jamarshon's avatar
jamarshon committed
98

99
100
bass_biquad
-----------
jamarshon's avatar
jamarshon committed
101

102
.. autofunction:: bass_biquad
jamarshon's avatar
jamarshon committed
103

104
105
biquad
------
jamarshon's avatar
jamarshon committed
106

107
.. autofunction:: biquad
jamarshon's avatar
jamarshon committed
108

109
110
contrast
--------
jamarshon's avatar
jamarshon committed
111

112
.. autofunction:: contrast
jamarshon's avatar
jamarshon committed
113

114
115
dcshift
-------
jamarshon's avatar
jamarshon committed
116

117
.. autofunction:: dcshift
jamarshon's avatar
jamarshon committed
118

119
120
deemph_biquad
-------------
jamarshon's avatar
jamarshon committed
121

122
.. autofunction:: deemph_biquad
123
124


125
126
dither
------
127

128
.. autofunction:: dither
129

130
131
equalizer_biquad
----------------
132

133
.. autofunction:: equalizer_biquad
134

135
136
137
138
139
filtfilt
--------

.. autofunction:: filtfilt

140
141
flanger
-------
142

143
144
145
146
147
148
149
150
151
.. autofunction:: flanger

gain
----

.. autofunction:: gain

highpass_biquad
---------------
152
153

.. autofunction:: highpass_biquad
154

155
156
lfilter
-------
moto's avatar
moto committed
157

158
.. autofunction:: lfilter
moto's avatar
moto committed
159

160
161
lowpass_biquad
--------------
162

163
.. autofunction:: lowpass_biquad
164

165
166
overdrive
---------
167

168
.. autofunction:: overdrive
169

170
171
phaser
------
172

173
.. autofunction:: phaser
174

175
176
riaa_biquad
-----------
177

178
.. autofunction:: riaa_biquad
179

180
181
treble_biquad
-------------
182
183
184

.. autofunction:: treble_biquad

185
186
187
:hidden:`Feature Extractions`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

188
189
190
:hidden:`vad`
-------------

191
.. autofunction:: vad
192

193
:hidden:`spectrogram`
194
---------------------
195

196
.. autofunction:: spectrogram
197

198
199
200
201
202
:hidden:`inverse_spectrogram`
-----------------------------

.. autofunction:: inverse_spectrogram

203
:hidden:`griffinlim`
204
--------------------
205
206
207

.. autofunction:: griffinlim

208
:hidden:`phase_vocoder`
209
-----------------------
210
211

.. autofunction:: phase_vocoder
212

213
:hidden:`pitch_shift`
214
---------------------
215
216
217

.. autofunction:: pitch_shift

218
:hidden:`compute_deltas`
219
------------------------
220
221
222
223

.. autofunction:: compute_deltas

:hidden:`detect_pitch_frequency`
224
--------------------------------
225
226

.. autofunction:: detect_pitch_frequency
wanglong001's avatar
wanglong001 committed
227
228

:hidden:`sliding_window_cmn`
229
----------------------------
wanglong001's avatar
wanglong001 committed
230

231
.. autofunction:: sliding_window_cmn
moto's avatar
moto committed
232
233

:hidden:`compute_kaldi_pitch`
234
-----------------------------
moto's avatar
moto committed
235
236

.. autofunction:: compute_kaldi_pitch
Vincent QB's avatar
Vincent QB committed
237
238

:hidden:`spectral_centroid`
239
---------------------------
Vincent QB's avatar
Vincent QB committed
240
241

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

243
244
245
246
247
248
249
250
:hidden:`Loss`
~~~~~~~~~~~~~~

rnnt_loss
---------

.. autofunction:: rnnt_loss

251
252
253
254
255
256
257
258
:hidden:`Metric`
~~~~~~~~~~~~~~~~

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

.. autofunction:: edit_distance

moto's avatar
moto committed
259
260
261
262
References
~~~~~~~~~~

.. footbibliography::