Skip to main content

A collection of PyTorch audio datasets for speech and music applications

Project description

AudioLoader

AudioLoader is a PyTorch dataset based on torchaudio. It contains a collection of datasets that are not available in torchaudio yet.

Currently supported datasets:

  1. Speech
    1. Multilingual LibriSpeech (MLS)
    2. TIMIT
    3. SpeechCommands v2 (12 classes)
  2. Automatic Music Transcription (AMT)
    1. MAPS
    2. MusicNet
    3. MAESTRO
  3. Music Source Separation (MSS)
    1. FastMUSDB
    2. MusdbHQ

Example code

A complete example code is available in this repository. The following pseudo code shows the general idea of how to apply AudioLoader to your existing code.

from AudioLoader.speech import TIMIT
from torch.utils.data import DataLoader

# AudioLoader helps you to set up supported datasets
dataset = TIMIT('./YourFolder',
                split='train',
                groups='all',
                download=True)
train_loader = DataLoader(dataset,
                          batch_size=4)

# Pass the dataset to you 
model = MyModel()
trainer = pl.Trainer()
trainer.fit(model, train_loader)

Installation

pip install git+https://github.com/KinWaiCheuk/AudioLoader.git

News & Changelog

version 0.0.3 (10 Sep 2021):

  1. Replace broken links with a working links for MAPS and TIMIT
  2. Remove the slience indicators in the phonemic labels for TIMIT

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

AudioLoader-0.1.4.tar.gz (39.9 kB view details)

Uploaded Source

Built Distribution

AudioLoader-0.1.4-py3-none-any.whl (48.8 kB view details)

Uploaded Python 3

File details

Details for the file AudioLoader-0.1.4.tar.gz.

File metadata

  • Download URL: AudioLoader-0.1.4.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for AudioLoader-0.1.4.tar.gz
Algorithm Hash digest
SHA256 156e7a51585ddc6c6eba639261d0e58fc7d460a7730a461beb932804b8f4db8b
MD5 222b5ac1612eb20584d2d72ede8d40bd
BLAKE2b-256 785026f3c21d9916006fd649cda7a6c46ce24eaa4d117f3839c00e5785df38df

See more details on using hashes here.

File details

Details for the file AudioLoader-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: AudioLoader-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 48.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for AudioLoader-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e853ab04a1f48d94da948ee4bdee8e56671adf8523b597980b1d63091344e1b
MD5 19aecc1eab930b6afa1c8705e43b4f35
BLAKE2b-256 801f0d642a538075173d58273bc5168365002e5c12f65454e18b4d76ffb94907

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