fma-medium / README.md
philgzl's picture
Upload folder using huggingface_hub
722e216 verified
|
Raw
History Blame Contribute Delete
1.31 kB
metadata
license: other
dataset_info:
  features:
    - name: audio
      dtype: audio
    - name: name
      dtype: string

Free Music Archive (FMA-medium)

This is a mirror of FMA-medium.

  • Sampling rate: 24 and 48 kHz
  • Channels: 1 and 2
  • Format: Opus
  • Duration: 208 hours, 24908 tracks
  • License:
    • Each track is distributed under the license chosen by the artist. See tracks.csv for details.
    • The metadata is distributed under CC BY 4.0.
  • Source: https://github.com/mdeff/fma
  • Paper: FMA: A Dataset For Music Analysis

Usage

import io

import soundfile as sf
from datasets import Features, Value, load_dataset

for item in load_dataset(
    "philgzl/fma-medium",
    streaming=True,
    features=Features({"audio": Value("binary"), "name": Value("string")}),
):
    print(item["name"])
    buffer = io.BytesIO(item["audio"])
    x, fs = sf.read(buffer)
    # do stuff...

Citation

@inproceedings{defferrard2017fma,
  title = {{FMA}: {A} dataset for music analysis},
  author = {Defferrard, Micha{\"e}l and Benzi, Kirell and Vandergheynst, Pierre and Bresson, Xavier},
  booktitle = {Proc. ISMIR},
  pages = {316--323},
  year = {2017},
}