Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
3012050d
Unverified
Commit
3012050d
authored
Apr 27, 2020
by
Vincent QB
Committed by
GitHub
Apr 27, 2020
Browse files
Update documentation (#568)
* formatting. * update datasets.
parent
6bc591ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
28 deletions
+60
-28
docs/source/datasets.rst
docs/source/datasets.rst
+34
-2
docs/source/functional.rst
docs/source/functional.rst
+22
-22
torchaudio/transforms.py
torchaudio/transforms.py
+4
-4
No files found.
docs/source/datasets.rst
View file @
3012050d
...
...
@@ -25,15 +25,47 @@ All the datasets have almost similar API. They all have two common arguments:
.. currentmodule:: torchaudio.datasets
COMMONVOICE
~~~~~~~~~~~
.. autoclass:: COMMONVOICE
:members: __getitem__
:special-members:
LIBRISPEECH
~~~~~~~~~~~
.. autoclass:: LIBRISPEECH
:members: __getitem__
:special-members:
LJSPEECH
~~~~~~~~
.. autoclass:: LJSPEECH
:members: __getitem__
:special-members:
SPEECHCOMMANDS
~~~~~~~~~~~~~~
.. autoclass:: SPEECHCOMMANDS
:members: __getitem__
:special-members:
VCTK
~~~~
~
~~~~
.. autoclass:: VCTK
:members: __getitem__
:special-members:
YESNO
~~~~~
~~~~~~~~
~~~~~
.. autoclass:: YESNO
:members: __getitem__
...
...
docs/source/functional.rst
View file @
3012050d
...
...
@@ -2,94 +2,94 @@
:class: hidden-section
torchaudio.functional
=====================
=
=====================
.. currentmodule:: torchaudio.functional
Functions to perform common audio operations.
:hidden:`istft`
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
.. autofunction:: istft
:hidden:`spectrogram`
~~~~~~~~~~~~~~~~~~~~~
~~~~~~~
~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: spectrogram
:hidden:`amplitude_to_DB`
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: amplitude_to_DB
:hidden:`create_fb_matrix`
~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: create_fb_matrix
:hidden:`create_dct`
~~~~~~~~~~~~~~~~~~~~
~~~~~~~~
~~~~~~~~~~~~~~~~~~~~
.. autofunction:: create_dct
:hidden:`mu_law_encoding`
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: mu_law_encoding
:hidden:`mu_law_decoding`
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: mu_law_decoding
:hidden:`complex_norm`
~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: complex_norm
:hidden:`angle`
~~~~~~~~~~~~~~~
~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
.. autofunction:: angle
:hidden:`magphase`
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
.. autofunction:: magphase
:hidden:`phase_vocoder`
~~~~~~~~~~~~~~~~~~~~~~~
~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: phase_vocoder
:hidden:`lfilter`
~~~~~~~~~~~~~~~~~
~~~~~~~~~~~
~~~~~~~~~~~~~~~~~
.. autofunction:: lfilter
:hidden:`biquad`
~~~~~~~~~~~~~~~~
~~~~~~~~~~~~
~~~~~~~~~~~~~~~~
.. autofunction:: biquad
:hidden:`lowpass_biquad`
~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: lowpass_biquad
:hidden:`highpass_biquad`
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: highpass_biquad
:hidden:`allpass_biquad`
~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: allpass_biquad
:hidden:`equalizer_biquad`
~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: equalizer_biquad
...
...
@@ -139,22 +139,22 @@ Functions to perform common audio operations.
.. autofunction:: overdrive
:hidden:`mask_along_axis`
~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
~~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: mask_along_axis
:hidden:`mask_along_axis_iid`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
.. autofunction:: mask_along_axis_iid
:hidden:`compute_deltas`
~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
~~~~~~~~~~~~~~~~~~~~~~~~
.. autofunction:: compute_deltas
:hidden:`detect_pitch_frequency`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
.. autofunction:: detect_pitch_frequency
...
...
torchaudio/transforms.py
View file @
3012050d
...
...
@@ -838,10 +838,10 @@ class Vol(torch.nn.Module):
Args:
gain (float): Interpreted according to the given gain_type:
If `gain_type
’
=
‘
amplitude
’
, `gain
’
is a positive amplitude ratio.
If `gain_type
’
=
‘
power
’
, `gain
’
is a power (voltage squared).
If `gain_type
’
=
‘db’
, `gain
’
is in decibels.
gain_type (str, optional): Type of gain. One of:
‘
amplitude
’, ‘power’, ‘db’
(Default: ``
"
amplitude
"
``)
If
`
`gain_type
``
=
``
amplitude
``
,
`
`gain
``
is a positive amplitude ratio.
If
`
`gain_type
``
=
``
power
``
,
`
`gain
``
is a power (voltage squared).
If
`
`gain_type
``
=
``db``
,
`
`gain
``
is in decibels.
gain_type (str, optional): Type of gain. One of:
``
amplitude
``, ``power``, ``db``
(Default: ``amplitude``)
"""
def
__init__
(
self
,
gain
:
float
,
gain_type
:
str
=
'amplitude'
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment