functional.rst 3.63 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
77
78
79
80
81
82
83
84
85
:hidden:`Complex Utility`
~~~~~~~~~~~~~~~~~~~~~~~~~

Utilities for pseudo complex tensor. This is not for the native complex dtype, such as `cfloat64`, but for tensors with real-value type and have extra dimension at the end for real and imaginary parts.


complex_norm
------------

.. autofunction:: complex_norm


86
87
:hidden:`Filtering`
~~~~~~~~~~~~~~~~~~~
jamarshon's avatar
jamarshon committed
88
89


90
91
allpass_biquad
--------------
jamarshon's avatar
jamarshon committed
92

93
.. autofunction:: allpass_biquad
jamarshon's avatar
jamarshon committed
94

95
96
band_biquad
-----------
jamarshon's avatar
jamarshon committed
97

98
.. autofunction:: band_biquad
jamarshon's avatar
jamarshon committed
99

100
101
bandpass_biquad
---------------
jamarshon's avatar
jamarshon committed
102

103
.. autofunction:: bandpass_biquad
jamarshon's avatar
jamarshon committed
104

105
106
bandreject_biquad
-----------------
jamarshon's avatar
jamarshon committed
107

108
.. autofunction:: bandreject_biquad
jamarshon's avatar
jamarshon committed
109

110
111
bass_biquad
-----------
jamarshon's avatar
jamarshon committed
112

113
.. autofunction:: bass_biquad
jamarshon's avatar
jamarshon committed
114

115
116
biquad
------
jamarshon's avatar
jamarshon committed
117

118
.. autofunction:: biquad
jamarshon's avatar
jamarshon committed
119

120
121
contrast
--------
jamarshon's avatar
jamarshon committed
122

123
.. autofunction:: contrast
jamarshon's avatar
jamarshon committed
124

125
126
dcshift
-------
jamarshon's avatar
jamarshon committed
127

128
.. autofunction:: dcshift
jamarshon's avatar
jamarshon committed
129

130
131
deemph_biquad
-------------
jamarshon's avatar
jamarshon committed
132

133
.. autofunction:: deemph_biquad
134
135


136
137
dither
------
138

139
.. autofunction:: dither
140

141
142
equalizer_biquad
----------------
143

144
.. autofunction:: equalizer_biquad
145

146
147
148
149
150
filtfilt
--------

.. autofunction:: filtfilt

151
152
flanger
-------
153

154
155
156
157
158
159
160
161
162
.. autofunction:: flanger

gain
----

.. autofunction:: gain

highpass_biquad
---------------
163
164

.. autofunction:: highpass_biquad
165

166
167
lfilter
-------
moto's avatar
moto committed
168

169
.. autofunction:: lfilter
moto's avatar
moto committed
170

171
172
lowpass_biquad
--------------
173

174
.. autofunction:: lowpass_biquad
175

176
177
overdrive
---------
178

179
.. autofunction:: overdrive
180

181
182
phaser
------
183

184
.. autofunction:: phaser
185

186
187
riaa_biquad
-----------
188

189
.. autofunction:: riaa_biquad
190

191
192
treble_biquad
-------------
193
194
195

.. autofunction:: treble_biquad

196
197
198
:hidden:`Feature Extractions`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

199
200
201
:hidden:`vad`
-------------

202
.. autofunction:: vad
203

204
:hidden:`spectrogram`
205
---------------------
206

207
.. autofunction:: spectrogram
208

209
210
211
212
213
:hidden:`inverse_spectrogram`
-----------------------------

.. autofunction:: inverse_spectrogram

214
:hidden:`griffinlim`
215
--------------------
216
217
218

.. autofunction:: griffinlim

219
:hidden:`phase_vocoder`
220
-----------------------
221
222

.. autofunction:: phase_vocoder
223

224
:hidden:`pitch_shift`
225
---------------------
226
227
228

.. autofunction:: pitch_shift

229
:hidden:`compute_deltas`
230
------------------------
231
232
233
234

.. autofunction:: compute_deltas

:hidden:`detect_pitch_frequency`
235
--------------------------------
236
237

.. autofunction:: detect_pitch_frequency
wanglong001's avatar
wanglong001 committed
238
239

:hidden:`sliding_window_cmn`
240
----------------------------
wanglong001's avatar
wanglong001 committed
241

242
.. autofunction:: sliding_window_cmn
moto's avatar
moto committed
243
244

:hidden:`compute_kaldi_pitch`
245
-----------------------------
moto's avatar
moto committed
246
247

.. autofunction:: compute_kaldi_pitch
Vincent QB's avatar
Vincent QB committed
248
249

:hidden:`spectral_centroid`
250
---------------------------
Vincent QB's avatar
Vincent QB committed
251
252

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

254
255
256
257
258
259
260
261
:hidden:`Loss`
~~~~~~~~~~~~~~

rnnt_loss
---------

.. autofunction:: rnnt_loss

262
263
264
265
266
267
268
269
:hidden:`Metric`
~~~~~~~~~~~~~~~~

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

.. autofunction:: edit_distance

moto's avatar
moto committed
270
271
272
273
References
~~~~~~~~~~

.. footbibliography::