Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
b853213
more
jamarshon Jul 25, 2019
d2086ff
more
jamarshon Jul 25, 2019
7bc97f5
more
jamarshon Jul 25, 2019
3f86798
more
jamarshon Jul 25, 2019
61bfda5
more
jamarshon Jul 25, 2019
3aa38a1
more
jamarshon Jul 25, 2019
5996631
more
jamarshon Jul 25, 2019
b74c477
more
jamarshon Jul 25, 2019
479224e
more
jamarshon Jul 25, 2019
2096e60
more
jamarshon Jul 25, 2019
60dc149
more
jamarshon Jul 25, 2019
17a3755
more
jamarshon Jul 25, 2019
52511dd
more
jamarshon Jul 25, 2019
d083d04
more
jamarshon Jul 25, 2019
c0f64a7
more
jamarshon Jul 25, 2019
7e6daa3
more
jamarshon Jul 25, 2019
1ebe169
more
jamarshon Jul 25, 2019
a22d437
more
jamarshon Jul 25, 2019
a2b17ba
more
jamarshon Jul 25, 2019
4e197f5
more
jamarshon Jul 25, 2019
a615315
more
jamarshon Jul 25, 2019
499f6b5
more
jamarshon Jul 25, 2019
c718ff4
more
jamarshon Jul 25, 2019
4dee374
more
jamarshon Jul 25, 2019
5b07f7f
more
jamarshon Jul 26, 2019
2bc3e46
more
jamarshon Jul 26, 2019
0566d8a
more
jamarshon Jul 26, 2019
09ec713
apply feedback
jamarshon Jul 26, 2019
186abd1
apply feedback
jamarshon Jul 26, 2019
1fe5f65
more
jamarshon Jul 26, 2019
432bd78
more
jamarshon Jul 26, 2019
461d206
apply feedback
jamarshon Jul 26, 2019
618e4f0
Merge branch 'master' into docs
jamarshon Jul 26, 2019
9c55cf2
Merge branch 'master' into docs
jamarshon Jul 26, 2019
bdbca16
more
jamarshon Jul 26, 2019
4e7ce19
more
jamarshon Jul 26, 2019
a63d71b
more
jamarshon Jul 26, 2019
3b18559
more
jamarshon Jul 26, 2019
f13d30b
channel to channels
jamarshon Jul 26, 2019
1a50cf7
FFT
jamarshon Jul 26, 2019
d4c25ff
more
jamarshon Jul 26, 2019
1d72b32
apply feedback: size/shape/dimension and freq/frequency
jamarshon Jul 29, 2019
8aa4d1e
Merge branch 'master' into docs
jamarshon Jul 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ torchaudio: an audio library for PyTorch
- [Kaldi (ark/scp)](http://pytorch.org/audio/kaldi_io.html)
- [Dataloaders for common audio datasets (VCTK, YesNo)](http://pytorch.org/audio/datasets.html)
- Common audio transforms
- [Scale, PadTrim, DownmixMono, LC2CL, BLC2CBL, MuLawEncoding, MuLawExpanding](http://pytorch.org/audio/transforms.html)
- [Spectrogram, SpectrogramToDB, MelScale, MelSpectrogram, MFCC, MuLawEncoding, MuLawDecoding, Resample](http://pytorch.org/audio/transforms.html)
- Compliance interfaces: Run code using PyTorch that align with other libraries
- [Kaldi: fbank, spectrogram, resample_waveform](https://pytorch.org/audio/compliance.kaldi.html)

Dependencies
------------
Expand Down
5 changes: 5 additions & 0 deletions docs/source/compliance.kaldi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ Functions
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: spectrogram

:hidden:`resample_waveform`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: resample_waveform
50 changes: 22 additions & 28 deletions docs/source/functional.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,63 +8,57 @@ torchaudio.functional

Functions to perform common audio operations.

:hidden:`scale`
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: scale


:hidden:`pad_trim`
:hidden:`istft`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: pad_trim
.. autofunction:: istft

:hidden:`downmix_mono`
:hidden:`spectrogram`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: downmix_mono
.. autofunction:: spectrogram

:hidden:`LC2CL`
:hidden:`amplitude_to_DB`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: LC2CL
.. autofunction:: amplitude_to_DB

:hidden:`istft`
:hidden:`create_fb_matrix`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: istft
.. autofunction:: create_fb_matrix

:hidden:`spectrogram`
:hidden:`create_dct`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: spectrogram
.. autofunction:: create_dct

:hidden:`create_fb_matrix`
:hidden:`mu_law_encoding`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: create_fb_matrix
.. autofunction:: mu_law_encoding

:hidden:`spectrogram_to_DB`
:hidden:`mu_law_decoding`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: spectrogram_to_DB
.. autofunction:: mu_law_decoding

:hidden:`create_dct`
:hidden:`complex_norm`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: create_dct
.. autofunction:: complex_norm

:hidden:`BLC2CBL`
:hidden:`angle`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: BLC2CBL
.. autofunction:: angle

:hidden:`mu_law_encoding`
:hidden:`magphase`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: mu_law_encoding
.. autofunction:: magphase

:hidden:`mu_law_expanding`
:hidden:`phase_vocoder`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: mu_law_expanding
.. autofunction:: phase_vocoder
2 changes: 1 addition & 1 deletion docs/source/kaldi_io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ torchaudio.kaldi_io
.. currentmodule:: torchaudio.kaldi_io

To use this module, the dependency kaldi_io_ needs to be installed.
This is a light wrapper around ``kaldi_io`` that returns :class:`torch.Tensors`.
This is a light wrapper around ``kaldi_io`` that returns :class:`torch.Tensor`.

.. _kaldi_io: https://github.com/vesis84/kaldi-io-for-python

Expand Down
16 changes: 14 additions & 2 deletions docs/source/legacy.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
.. role:: hidden
:class: hidden-section

torchaudio.legacy
======================

.. currentmodule:: torchaudio.legacy

Legacy loading and save functions.

.. automodule:: torchaudio.legacy
:members:
:hidden:`load`
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: load

:hidden:`save`
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: save
9 changes: 9 additions & 0 deletions docs/source/sox_effects.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
.. role:: hidden
:class: hidden-section

torchaudio.sox_effects
======================

Create SoX effects chain for preprocessing audio.

.. currentmodule:: torchaudio.sox_effects

:hidden:`SoxEffect`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: SoxEffect
:members:

:hidden:`SoxEffectsChain`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: SoxEffectsChain
:members: append_effect_to_chain, sox_build_flow_effects, clear_chain, set_input_file
60 changes: 51 additions & 9 deletions docs/source/transforms.rst
Original file line number Diff line number Diff line change
@@ -1,24 +1,66 @@
.. role:: hidden
:class: hidden-section

torchaudio.transforms
======================

.. currentmodule:: torchaudio.transforms

Transforms are common audio transforms. They can be chained together using :class:`Compose`
Transforms are common audio transforms. They can be chained together using :class:`torch.nn.Sequential`


:hidden:`Spectrogram`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: Spectrogram

.. automethod:: torchaudio._docs.Spectrogram.forward

:hidden:`AmplitudeToDB`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: AmplitudeToDB

.. automethod:: torchaudio._docs.AmplitudeToDB.forward

:hidden:`MelScale`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: Compose
.. autoclass:: MelScale

.. autoclass:: Scale
.. automethod:: torchaudio._docs.MelScale.forward

.. autoclass:: PadTrim
:hidden:`MelSpectrogram`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: DownmixMono
.. autoclass:: MelSpectrogram

.. autoclass:: LC2CL
.. automethod:: torchaudio._docs.MelSpectrogram.forward

.. autoclass:: MEL
:hidden:`MFCC`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: BLC2CBL
.. autoclass:: MFCC

.. automethod:: torchaudio._docs.MFCC.forward

:hidden:`MuLawEncoding`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: MuLawEncoding

.. autoclass:: MuLawExpanding
.. automethod:: torchaudio._docs.MuLawEncoding.forward

:hidden:`MuLawDecoding`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: MuLawDecoding

.. automethod:: torchaudio._docs.MuLawDecoding.forward

:hidden:`Resample`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autoclass:: Resample

.. automethod:: torchaudio._docs.Resample.forward
Loading