Skip to main content

soundata

Python library for downloading, loading & working with sound datasets. Check the API documentation and the contributing instructions.
For Music Information Retrieval (MIR) datasets please check mirdata.

CI status Formatting status Linting status Downloads

codecov Documentation Status GitHub PyPI version PRs Welcome

This library provides tools for working with common sound datasets, including tools for:

  • Downloading datasets to a common location and format
  • Validating that the files for a dataset are all present
  • Loading annotation files to a common format
  • Parsing clip-level metadata for detailed evaluations

Here's soundata's list of currently supported datasets.

Installation

To install, simply run:

pip install soundata

Quick example

import soundata

dataset = soundata.initialize('urbansound8k')
dataset.download()  # download the dataset
dataset.validate()  # validate that all the expected files are there

example_clip = dataset.choice_clip()  # choose a random example clip
print(example_clip)  # see the available data

See the documentation for more examples and the API reference.

Contributing a new dataset loader

We welcome and encourage contributions to this library, especially new dataset loaders. Please see contributing for guidelines. Feel free to open an issue if you have any doubt or your run into problems when working on the library.

Citing

TBA

When working with datasets, please cite the version of soundata that you are using AND include the reference of the dataset, which can be found in the respective dataset loader using the cite() method.

Metadata

Release files for soundata 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for soundata 1.0.1
File Size Uploaded
soundata-1.0.1.tar.gz 142.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for soundata 1.0.1
File Interpreter ABI Platform
soundata-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 304.1 kB

Release files / soundata-1.0.1.tar.gz

Download URL soundata-1.0.1.tar.gz
Size 142.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8dbbf2367463b0fb7ff4fe8b512271ae73c5b4f5f96db57b9c1ac085c74a8d16
BLAKE2b-256 checksum
How to use checksums
23642c6662d7f41c1aef966c7f67c92872876e302ac1b6d71869fa959193db04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / soundata-1.0.1-py3-none-any.whl

Download URL soundata-1.0.1-py3-none-any.whl
Size 162.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8756d614d0ec2b2be2bb5be290898ed8e856aac0bb271c5eaeed16792d78a8dd
BLAKE2b-256 checksum
How to use checksums
dab0d8823eed97b11b44a6031db3e53db55ccc734fb049e27b48ad88fa11d854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page