functional.rst 3.13 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
:hidden:`Utility`
~~~~~~~~~~~~~~~~~

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

.. autofunction:: amplitude_to_DB

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

.. autofunction:: DB_to_amplitude

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

.. autofunction:: create_fb_matrix

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
58

Caroline Chen's avatar
Caroline Chen committed
59
60
61
62
63
resample
--------

.. autofunction:: resample

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
: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.

angle
-----

.. autofunction:: angle

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

.. autofunction:: complex_norm


magphase
--------

.. autofunction:: magphase

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

132
.. autofunction:: deemph_biquad
133
134


135
136
dither
------
137

138
.. autofunction:: dither
139

140
141
equalizer_biquad
----------------
142

143
.. autofunction:: equalizer_biquad
144

145
146
flanger
-------
147

148
149
150
151
152
153
154
155
156
.. autofunction:: flanger

gain
----

.. autofunction:: gain

highpass_biquad
---------------
157
158

.. autofunction:: highpass_biquad
159

160
161
lfilter
-------
moto's avatar
moto committed
162

163
.. autofunction:: lfilter
moto's avatar
moto committed
164

165
166
lowpass_biquad
--------------
167

168
.. autofunction:: lowpass_biquad
169

170
171
overdrive
---------
172

173
.. autofunction:: overdrive
174

175
176
phaser
------
177

178
.. autofunction:: phaser
179

180
181
riaa_biquad
-----------
182

183
.. autofunction:: riaa_biquad
184

185
186
treble_biquad
-------------
187
188
189

.. autofunction:: treble_biquad

jimchen90's avatar
jimchen90 committed
190

191
192
vad
---
jimchen90's avatar
jimchen90 committed
193

194
195
196
:hidden:`Feature Extractions`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

197
.. autofunction:: vad
198

199
:hidden:`spectrogram`
200
---------------------
201

202
.. autofunction:: spectrogram
203

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

.. autofunction:: griffinlim

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

.. autofunction:: phase_vocoder
213

214
:hidden:`compute_deltas`
215
------------------------
216
217
218
219

.. autofunction:: compute_deltas

:hidden:`detect_pitch_frequency`
220
--------------------------------
221
222

.. autofunction:: detect_pitch_frequency
wanglong001's avatar
wanglong001 committed
223
224

:hidden:`sliding_window_cmn`
225
----------------------------
wanglong001's avatar
wanglong001 committed
226

227
.. autofunction:: sliding_window_cmn
moto's avatar
moto committed
228
229

:hidden:`compute_kaldi_pitch`
230
-----------------------------
moto's avatar
moto committed
231
232

.. autofunction:: compute_kaldi_pitch
Vincent QB's avatar
Vincent QB committed
233
234

:hidden:`spectral_centroid`
235
---------------------------
Vincent QB's avatar
Vincent QB committed
236
237

.. autofunction:: spectral_centroid