Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
649 changes: 649 additions & 0 deletions 0.9.0/_modules/index.html

Large diffs are not rendered by default.

674 changes: 674 additions & 0 deletions 0.9.0/_modules/torchaudio/backend/common.html

Large diffs are not rendered by default.

1,054 changes: 1,054 additions & 0 deletions 0.9.0/_modules/torchaudio/backend/soundfile_backend.html

Large diffs are not rendered by default.

940 changes: 940 additions & 0 deletions 0.9.0/_modules/torchaudio/backend/sox_io_backend.html

Large diffs are not rendered by default.

706 changes: 706 additions & 0 deletions 0.9.0/_modules/torchaudio/backend/utils.html

Large diffs are not rendered by default.

1,405 changes: 1,405 additions & 0 deletions 0.9.0/_modules/torchaudio/compliance/kaldi.html

Large diffs are not rendered by default.

796 changes: 796 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/cmuarctic.html

Large diffs are not rendered by default.

699 changes: 699 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/commonvoice.html

Large diffs are not rendered by default.

1,736 changes: 1,736 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/gtzan.html

Large diffs are not rendered by default.

765 changes: 765 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/librispeech.html

Large diffs are not rendered by default.

773 changes: 773 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/libritts.html

Large diffs are not rendered by default.

711 changes: 711 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/ljspeech.html

Large diffs are not rendered by default.

770 changes: 770 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/speechcommands.html

Large diffs are not rendered by default.

815 changes: 815 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/tedlium.html

Large diffs are not rendered by default.

892 changes: 892 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/vctk.html

Large diffs are not rendered by default.

710 changes: 710 additions & 0 deletions 0.9.0/_modules/torchaudio/datasets/yesno.html

Large diffs are not rendered by default.

2,207 changes: 2,207 additions & 0 deletions 0.9.0/_modules/torchaudio/functional/filtering.html

Large diffs are not rendered by default.

2,063 changes: 2,063 additions & 0 deletions 0.9.0/_modules/torchaudio/functional/functional.html

Large diffs are not rendered by default.

753 changes: 753 additions & 0 deletions 0.9.0/_modules/torchaudio/kaldi_io.html

Large diffs are not rendered by default.

933 changes: 933 additions & 0 deletions 0.9.0/_modules/torchaudio/models/conv_tasnet.html

Large diffs are not rendered by default.

714 changes: 714 additions & 0 deletions 0.9.0/_modules/torchaudio/models/deepspeech.html

Large diffs are not rendered by default.

697 changes: 697 additions & 0 deletions 0.9.0/_modules/torchaudio/models/wav2letter.html

Large diffs are not rendered by default.

870 changes: 870 additions & 0 deletions 0.9.0/_modules/torchaudio/models/wav2vec2/model.html

Large diffs are not rendered by default.

828 changes: 828 additions & 0 deletions 0.9.0/_modules/torchaudio/models/wav2vec2/utils/import_fairseq.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

949 changes: 949 additions & 0 deletions 0.9.0/_modules/torchaudio/models/wavernn.html

Large diffs are not rendered by default.

896 changes: 896 additions & 0 deletions 0.9.0/_modules/torchaudio/sox_effects/sox_effects.html

Large diffs are not rendered by default.

1,833 changes: 1,833 additions & 0 deletions 0.9.0/_modules/torchaudio/transforms.html

Large diffs are not rendered by default.

715 changes: 715 additions & 0 deletions 0.9.0/_modules/torchaudio/utils/sox_utils.html

Large diffs are not rendered by default.

92 changes: 92 additions & 0 deletions 0.9.0/_sources/backend.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.. _backend:

torchaudio.backend
==================

Overview
~~~~~~~~

:mod:`torchaudio.backend` module provides implementations for audio file I/O functionalities, which are ``torchaudio.info``, ``torchaudio.load``, and ``torchaudio.save``.

There are currently four implementations available.

* :ref:`"sox_io" <sox_io_backend>` (default on Linux/macOS)
* :ref:`"soundfile" <soundfile_backend>` (default on Windows)

.. note::
Instead of calling functions in ``torchaudio.backend`` directly, please use ``torchaudio.info``, ``torchaudio.load``, and ``torchaudio.save`` with proper backend set with :func:`torchaudio.set_audio_backend`.

Availability
------------

``"sox_io"`` backend requires C++ extension module, which is included in Linux/macOS binary distributions. This backend is not available on Windows.

``"soundfile"`` backend requires ``SoundFile``. Please refer to `the SoundFile documentation <https://pysoundfile.readthedocs.io/en/latest/>`_ for the installation.

Common Data Structure
~~~~~~~~~~~~~~~~~~~~~

Structures used to report the metadata of audio files.

AudioMetaData
-------------

.. autoclass:: torchaudio.backend.common.AudioMetaData

.. _sox_io_backend:

Sox IO Backend
~~~~~~~~~~~~~~

The ``"sox_io"`` backend is available and default on Linux/macOS and not available on Windows.

I/O functions of this backend support `TorchScript <https://pytorch.org/docs/stable/jit.html>`_.

You can switch from another backend to the ``sox_io`` backend with the following;

.. code::

torchaudio.set_audio_backend("sox_io")

info
----

.. autofunction:: torchaudio.backend.sox_io_backend.info

load
----

.. autofunction:: torchaudio.backend.sox_io_backend.load

save
----

.. autofunction:: torchaudio.backend.sox_io_backend.save

.. _soundfile_backend:

Soundfile Backend
~~~~~~~~~~~~~~~~~

The ``"soundfile"`` backend is available when `SoundFile <https://pysoundfile.readthedocs.io/en/latest/>`_ is installed. This backend is the default on Windows.

You can switch from another backend to the ``"soundfile"`` backend with the following;

.. code::

torchaudio.set_audio_backend("soundfile")

info
----

.. autofunction:: torchaudio.backend.soundfile_backend.info

load
----

.. autofunction:: torchaudio.backend.soundfile_backend.load

save
----

.. autofunction:: torchaudio.backend.soundfile_backend.save
36 changes: 36 additions & 0 deletions 0.9.0/_sources/compliance.kaldi.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
.. role:: hidden
:class: hidden-section

torchaudio.compliance.kaldi
============================

.. currentmodule:: torchaudio.compliance.kaldi

The useful processing operations of kaldi_ can be performed with torchaudio.
Various functions with identical parameters are given so that torchaudio can
produce similar outputs.

.. _kaldi: https://github.com/kaldi-asr/kaldi

Functions
---------

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

.. autofunction:: spectrogram

:hidden:`fbank`
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: fbank

:hidden:`mfcc`
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: mfcc

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

.. autofunction:: resample_waveform
113 changes: 113 additions & 0 deletions 0.9.0/_sources/datasets.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
torchaudio.datasets
====================

All datasets are subclasses of :class:`torch.utils.data.Dataset`
and have ``__getitem__`` and ``__len__`` methods implemented.
Hence, they can all be passed to a :class:`torch.utils.data.DataLoader`
which can load multiple samples parallelly using ``torch.multiprocessing`` workers.
For example: ::

yesno_data = torchaudio.datasets.YESNO('.', download=True)
data_loader = torch.utils.data.DataLoader(yesno_data,
batch_size=1,
shuffle=True,
num_workers=args.nThreads)

The following datasets are available:

.. contents:: Datasets
:local:

All the datasets have almost similar API. They all have two common arguments:
``transform`` and ``target_transform`` to transform the input and target respectively.


.. currentmodule:: torchaudio.datasets


CMUARCTIC
~~~~~~~~~

.. autoclass:: CMUARCTIC
:members:
:special-members: __getitem__


COMMONVOICE
~~~~~~~~~~~

.. autoclass:: COMMONVOICE
:members:
:special-members: __getitem__


GTZAN
~~~~~

.. autoclass:: GTZAN
:members:
:special-members: __getitem__


LIBRISPEECH
~~~~~~~~~~~

.. autoclass:: LIBRISPEECH
:members:
:special-members: __getitem__


LIBRITTS
~~~~~~~~

.. autoclass:: LIBRITTS
:members:
:special-members: __getitem__


LJSPEECH
~~~~~~~~

.. autoclass:: LJSPEECH
:members:
:special-members: __getitem__


SPEECHCOMMANDS
~~~~~~~~~~~~~~

.. autoclass:: SPEECHCOMMANDS
:members:
:special-members: __getitem__


TEDLIUM
~~~~~~~~~~~~~~

.. autoclass:: TEDLIUM
:members:
:special-members: __getitem__


VCTK
~~~~

.. autoclass:: VCTK
:members:
:special-members: __getitem__


VCTK_092
~~~~~~~~

.. autoclass:: VCTK_092
:members:
:special-members: __getitem__


YESNO
~~~~~

.. autoclass:: YESNO
:members:
:special-members: __getitem__
Loading