audio-diffusion-pytorch is a complete audio diffusion library for PyTorch, mainly used for audio generation with diffusion models.
Purpose: It can be used for unconditional audio generation, text-conditioned audio generation, diffusion autoencoding, audio upsampling, and vocoding tasks.
Main capabilities:
- Unconditional generator: generates audio waveforms.
- Text-conditioned generator: uses t5-base text embeddings as conditioning, requires running pip install transformers.
- Diffusion upsampler: uses diffusion to raise low-sample-rate audio to a high sample rate, for example 3kHz to 48kHz.
- Diffusion vocoder: uses diffusion to convert a mel-spectrogram into a waveform.
- Diffusion autoencoder: autoencodes audio into a compressed latent space, as long as the encoder subclasses EncoderBase, or contains the out_channels and downsample_factor fields.
Usage: The models in the library are based on waveforms; however, the U-Net (built with a-unet), DiffusionModel, diffusion methods, and diffusion samplers are general-purpose for arbitrary dimensions and highly customizable, and can be adapted for other formats.
Limitations: The repository does not provide pretrained models; the configurations shown are illustrative only and untested, and for the configurations used in the paper, please refer to Moûsai.
Applicable scenarios: Scenarios where you need to research or build audio diffusion pipelines, text-to-audio, audio super-resolution, vocoding, or audio latent-space encoding based on PyTorch.
Additional: The source mentions thanks to StabilityAI for providing compute, HarmonAI-related research discussions, ETH Zurich resources, advisor supervision, and the diffusion and sampler-related work of Phil Wang and Katherine Crowson; it also lists entries such as DDIM (V-Sampler) and Imagen (T5 text conditioning). The remaining installation, dependency versions, training data, and specific API usage are not provided for now.