Skip to main content

Deep learning with PyTorch and audio

Project description

audtorch on TravisCI audtorch's documentation on Read the Docs audtorch's MIT license

Deep learning with PyTorch and audio.

Documentation: https://audtorch.readthedocs.io

If you are interested in PyTorch and audio you should also check out the efforts to integrate more audio directly into PyTorch:

Installation

audtorch is supported by Python 3.5 or higher. To install it run (preferable in a virtual environment):

pip install audtorch

Usage

audtorch automates the data iteration process for deep neural network training using PyTorch. It provides a set of feature extraction transforms that can be implemented on-the-fly on the CPU.

The following example creates a data set of speech samples that are cut to a fixed length of 10240 samples. In addition they are augmented on the fly during data loading by a transform that adds samples from another data set:

>>> import sounddevice as sd
>>> from audtorch import datasets, transforms
>>> noise = datasets.WhiteNoise(duration=10240, sampling_rate=16000)
>>> augment = transforms.Compose([transforms.RandomCrop(10240),
...                               transforms.RandomAdditiveMix(noise)])
>>> data = datasets.LibriSpeech(root='~/LibriSpeech', sets='dev-clean',
...                             download=True, transform=augment)
>>> signal, label = data[8]
>>> sd.play(signal.transpose(), data.sampling_rate)

Besides data sets and transforms the package provides standard evaluation metrics, samplers, and necessary collate functions for training deep neural networks for audio tasks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audtorch-0.3.0.tar.gz (54.0 kB view details)

Uploaded Source

Built Distribution

audtorch-0.3.0-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file audtorch-0.3.0.tar.gz.

File metadata

  • Download URL: audtorch-0.3.0.tar.gz
  • Upload date:
  • Size: 54.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for audtorch-0.3.0.tar.gz
Algorithm Hash digest
SHA256 15f582510773a58ccf7f0046215bfdbeb6f69b954e3afdbfe7abedd3fe673114
MD5 cd5317dccc6de191c484edef5314f84a
BLAKE2b-256 23de84fe69a1ef28261443b8dd0f0232d586997d2b817baa6d44f2c31bf5189e

See more details on using hashes here.

File details

Details for the file audtorch-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: audtorch-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for audtorch-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4fb0519bd288c329b981c1637859f447e5b10e77ce62402664c7c3ec723d61a
MD5 13589a4f5f02a351f882e3ed6f2c7ed0
BLAKE2b-256 1e7ab7832ede401eff18abb237c07dc82702758ee2b1c0731805c6f44bdde3a0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page