functional.rst 1.66 KB
Newer Older
1
.. py:module:: torchaudio.functional
jamarshon's avatar
jamarshon committed
2
3

torchaudio.functional
Vincent QB's avatar
Vincent QB committed
4
=====================
jamarshon's avatar
jamarshon committed
5
6
7
8
9

.. currentmodule:: torchaudio.functional

Functions to perform common audio operations.

10
11
Utility
-------
12

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.. autosummary::
   :toctree: generated
   :nosignatures:

   amplitude_to_DB
   DB_to_amplitude
   melscale_fbanks
   linear_fbanks
   create_dct
   mask_along_axis
   mask_along_axis_iid
   mu_law_encoding
   mu_law_decoding
   apply_codec
   resample
   loudness
29
30
31
32
33
34
   convolve
   fftconvolve
   add_noise
   preemphasis
   deemphasis
   speed
moto's avatar
moto committed
35
36
37
38
39
40
41

Forced Alignment
----------------
.. autosummary::
   :toctree: generated
   :nosignatures:

Zhaoheng Ni's avatar
Zhaoheng Ni committed
42
   forced_align
moto's avatar
moto committed
43
44
   merge_tokens
   TokenSpan
45
46
47
48


Filtering
---------
49

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.. autosummary::
   :toctree: generated
   :nosignatures:

   allpass_biquad
   band_biquad
   bandpass_biquad
   bandreject_biquad
   bass_biquad
   biquad
   contrast
   dcshift
   deemph_biquad
   dither
   equalizer_biquad
   filtfilt
   flanger
   gain
   highpass_biquad
   lfilter
   lowpass_biquad
   overdrive
   phaser
   riaa_biquad
   treble_biquad

Feature Extractions
77
78
-------------------

79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.. autosummary::
   :toctree: generated
   :nosignatures:

   vad
   spectrogram
   inverse_spectrogram
   griffinlim
   phase_vocoder
   pitch_shift
   compute_deltas
   detect_pitch_frequency
   sliding_window_cmn
   spectral_centroid

Multi-channel
95
-------------
jamarshon's avatar
jamarshon committed
96

97
98
99
.. autosummary::
   :toctree: generated
   :nosignatures:
100

101
102
103
104
105
106
   psd
   mvdr_weights_souden
   mvdr_weights_rtf
   rtf_evd
   rtf_power
   apply_beamforming
107

108
Loss
109
110
----

111
112
113
.. autosummary::
   :toctree: generated
   :nosignatures:
114

115
   rnnt_loss
116

117
Metric
118
------
119

120
121
122
.. autosummary::
   :toctree: generated
   :nosignatures:
123

124
   edit_distance