← All notes

Hugging Face Datasets: load audio

Short answer

Audio columns decode on access. Point Audio / cast_column at file paths (or use AudioFolder) so examples yield arrays plus sampling rate. [S1]

Points

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

Source notice: Hugging Face Datasets documentation, Apache License 2.0 (https://github.com/huggingface/datasets/blob/main/LICENSE).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Hugging Face (Datasets docs), Load audio data · Hugging Face, Apache-2.0 (huggingface/datasets docs); Hugging Face, Process audio data, Apache-2.0 (huggingface/datasets docs).

Cite this

Permanent ID: iil:note:cyp8z818

iinventedlight. 2026. "Load audio datasets with Hugging Face Datasets." iinventedlight Library, iil:note:cyp8z818, version of 2026-11-04. https://iinventedlight.com/library/notes/hf-datasets-audio-loading/. License: CC-BY-4.0.

@misc{iil_note_cyp8z818,
  author = {{iinventedlight}},
  title = {{Load audio datasets with Hugging Face Datasets}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/hf-datasets-audio-loading/},
  note = {Permanent ID iil:note:cyp8z818. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/hf-datasets-audio-loading.md.