Module audiocraft.data

Audio loading and writing support. Datasets for raw audio or also including some metadata.

Sub-modules

audiocraft.data.audio

Audio IO methods are defined in this module (info, read, write), We rely on av library for faster read when possible, otherwise on torchaudio.

audiocraft.data.audio_dataset

AudioDataset support. In order to handle a larger number of files without having to scan again the folders, we precompute some metadata (filename, …

audiocraft.data.audio_utils

Various utilities for audio convertion (pcm format, sample rate and channels), and volume normalization.

audiocraft.data.info_audio_dataset

Base classes for the datasets that also provide non-audio metadata, e.g. description, text transcription etc.

audiocraft.data.jasco_dataset
audiocraft.data.music_dataset

Dataset of music tracks with rich metadata.

audiocraft.data.sound_dataset

Dataset of audio with a simple description.

audiocraft.data.zip

Utility for reading some info from inside a zip file.