--- 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](https://github.com/mdeff/fma). - **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](https://github.com/mdeff/fma) - **Paper:** [FMA: A Dataset For Music Analysis](https://arxiv.org/abs/1612.01840) ## Usage ```python 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 ```bibtex @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}, } ```