AudioSet / README.md
Muno459's picture
Dataset card, Google label files, per-clip metadata with the shard map, noise-bank subset
8449361 verified
|
Raw History Blame
4.58 kB
---
pretty_name: AudioSet (audio, 10 s clips, FLAC)
license: other
license_name: youtube-derived-audio
license_link: https://research.google.com/audioset/download.html
language:
- en
task_categories:
- audio-classification
tags:
- audioset
- audio
- sound-events
- noise
- speech-enhancement
size_categories:
- 1M<n<10M
gated: manual
extra_gated_prompt: "This dataset holds the 10 s AudioSet segments as downloaded from YouTube. Google publishes only the labels; the audio is YouTube content and stays under its terms. Access is granted for research use. By requesting access you confirm that you will use the audio for non-commercial research, will not redistribute it, and will comply with the YouTube Terms of Service and with any rights the content owners hold."
extra_gated_fields:
Affiliation: text
Intended use: text
I will use the audio for non-commercial research only and will not redistribute it: checkbox
---
# AudioSet audio
The labelled 10 s window of every AudioSet segment, downloaded from YouTube between August and September 2026 and stored as
FLAC at the source sample rate, packed into tar shards of about 4 GB, with Google's original label files and a per-segment
metadata table that maps each clip to its shard. 1,605,881 of the 2,084,320 segments could be fetched (1.89 TiB); the rest
are listed with the reason they are missing.
## Contents
| path | what |
|---|---|
| `metadata/*_segments.csv`, `class_labels_indices.csv`, `ontology.json`, `qa_true_counts.csv` | Google's label files, unchanged |
| `metadata/clips.parquet` | one row per segment: `ytid`, `split`, `start_s`, `end_s`, `labels` (list of ontology ids), `available`, `bytes`, `reason`, `shard`, `member` |
| `subsets/noise_bank.parquet` | the segments with no speech and no music (by label), with a coarse category (room, outdoor, traffic, wind, water, crowd, machine, animal, other) |
| `audio/<split>/<split>-NNNN.tar` | FLAC clips, members named `<ytid>_<start_ms>.flac`, in `(split, ytid, start)` order |
| split | segments | available | shards |
|---|---|---|---|
| eval | 20,371 | 15,460 | 5 |
| balanced_train | 22,160 | 16,324 | 5 |
| unbalanced_train | 2,041,789 | 1,574,097 | 474 |
Segments that could not be fetched, by reason:
| reason | segments |
|---|---|
| video removed | 240,020 |
| private or login-gated | 116,362 |
| unplayable | 85,705 |
| fetch error | 18,962 |
| age-restricted | 6,602 |
| extractor error | 5,750 |
| private | 3,690 |
| download incomplete | 1,075 |
| NO_AUDIO_FORMAT | 272 |
| bot wall | 1 |
## Loading
```python
from huggingface_hub import hf_hub_download, snapshot_download
import pyarrow.parquet as pq, tarfile, io, soundfile as sf
meta = pq.read_table(hf_hub_download("Muno459/audioset", "metadata/clips.parquet", repo_type="dataset")).to_pandas()
row = meta[meta.available].iloc[0]
tar = hf_hub_download("Muno459/audioset", row.shard, repo_type="dataset")
with tarfile.open(tar) as tf:
audio, sr = sf.read(io.BytesIO(tf.extractfile(row.member).read()))
```
For streaming training, the shards are plain tar files with one FLAC per member, so `webdataset` can read them directly
(`wds.WebDataset(urls).decode(wds.torch_audio)`); `metadata/clips.parquet` carries the labels for every member.
## Provenance and quality
Google releases AudioSet as CSV pointers to YouTube ids with 128-d embeddings; the audio itself has to be fetched per clip.
This copy was fetched with a resumable three-stage downloader (probe, extract, fetch) and each file was decoded once after
download to confirm it plays; the sample rate is whatever YouTube served for that video (mostly 44.1 or 48 kHz, some
lower), the channel layout is as served, and the 10 s window follows the segment's `start_s`. Nothing was resampled,
normalised or re-encoded beyond the FLAC container. `qa_true_counts.csv` is Google's own label quality assessment.
## Licence and terms
The labels and the ontology are released by Google under CC BY 4.0. The audio is YouTube content owned by its uploaders
and is not covered by that licence; it is shared here for non-commercial research under gated access, and requesters agree
not to redistribute it. If you are a rights holder and want a clip removed, open a discussion on this repository with the
YouTube id.
## Citation
Gemmeke, J. F., Ellis, D. P. W., Freedman, D., Jansen, A., Lawrence, W., Moore, R. C., Plakal, M., Ritter, M. (2017).
Audio Set: An ontology and human-labeled dataset for audio events. ICASSP 2017.