# AudioSet (2017)

> 2 million 10-second YouTube clips labeled with 527 kinds of sound.

Page: https://mralbu.github.io/ai-datasets/d/audioset

## Key facts

- Category: Audio
- Task: Sound event classification (multi-label)
- Creators: Jort F. Gemmeke, Daniel P. W. Ellis et al. (Google)
- Size: ~2.1M clips originally (~1.77M still downloadable in this copy)
- Splits: balanced_train 18,683, unbalanced_train 1,738,657, eval 17,141
- Input: 10 seconds of audio from a YouTube video
- Labels: One or more of 527 classes from a 632-node sound ontology
- License: Labels CC BY 4.0; audio under the YouTube uploaders' terms
- Paper: [Audio Set: An ontology and human-labeled dataset for audio events](https://research.google.com/pubs/archive/45857.pdf)
- Homepage: https://research.google.com/audioset/
- Hugging Face: [agkphysics/AudioSet](https://huggingface.co/datasets/agkphysics/AudioSet)
- Sampled at Hub revision 0c609e8302cf139307f639c57652032af0a88041 (2026-11-07)

## Why it matters

AudioSet did for sound what ImageNet did for images: a large, labeled, general-purpose dataset, from barking dogs and sirens to music genres and speech. Audio classifiers are compared on its mean average precision, and most modern audio encoders (PANNs, the Audio Spectrogram Transformer, CLAP) were trained or pretrained on it.

## Worth knowing

- Labels are "weak". They say a sound occurs somewhere in the 10 seconds, not when.
- Google released only YouTube ids and precomputed embeddings, not audio. Everyone downloads the clips themselves, and videos keep disappearing, so no two labs have exactly the same copy.
- Speech and Music are by far the most common labels, while rare classes have a few dozen clips. The balanced subset has at least 59 clips per class.
- The ontology is a hierarchy, from "Human sounds" and "Animal" down to labels like "Whale vocalization" and "Theremin". It is not a strict tree, since some labels sit under more than one parent.

## Get the data

A community copy with re-downloaded audio. The command fetches the balanced training set (~18k clips); the full set is about 1.7M clips.

```bash
# pip install -U huggingface_hub
hf download agkphysics/AudioSet --repo-type dataset \
  --include "data/bal_train/*" \
  --local-dir audioset
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("agkphysics/AudioSet", "balanced")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/agkphysics/AudioSet@~parquet/balanced/train/*.parquet")
print(df.shape)
```

## Related datasets

- [ESC-50](https://huggingface.co/datasets/ashraq/esc50): 2015, 2,000 clips in 50 environmental-sound classes
- [VGGSound](https://www.robots.ox.ac.uk/~vgg/data/vggsound/): 2020, 200k clips where the sound source is visible

## Landmark papers

- [CNN Architectures for Large-Scale Audio Classification (VGGish)](https://arxiv.org/abs/1609.09430) (2017)
- [PANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition](https://arxiv.org/abs/1912.10211) (2019)
- [AST: Audio Spectrogram Transformer](https://arxiv.org/abs/2104.01778) (2021)
