Datasets:
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.csvfor details. - The metadata is distributed under CC BY 4.0.
- Each track is distributed under the license chosen by the artist. See
- 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},
}