--- 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/-NNNN.tar` | FLAC clips, members named `_.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.