AudioCraft
A PyTorch library from Meta's FAIR team with inference and training code for audio generation models such as MusicGen and AudioGen.
At a Glance
AudioCraft code is released under the MIT license; model weights are under CC-BY-NC 4.0 (non-commercial).
Engagement
Available On
Alternatives
Listed Nov 2026
About AudioCraft
AudioCraft is a PyTorch library for deep learning research on audio generation, published by facebookresearch on GitHub. It contains inference and training code for generative audio models including MusicGen and AudioGen, along with a neural audio codec and other components.
What It Is
AudioCraft is a research-oriented Python library for audio processing and generation. Developers and researchers install it via pip, run pretrained models for inference, or clone the repository to train their own models. The README lists the models it covers: MusicGen (controllable text-to-music), AudioGen (text-to-sound), EnCodec (neural audio codec), Multi Band Diffusion (an EnCodec-compatible diffusion decoder), MAGNeT (non-autoregressive text-to-music and text-to-sound), AudioSeal (audio watermarking), MusicGen Style (text-and-style-to-music) and JASCO (text-to-music conditioned on chords, melodies and drum tracks).
Training and Research Workflow
The library provides PyTorch components and training pipelines for audio research. Training code is documented for EnCodec, MusicGen, Multi Band Diffusion and JASCO, with per-model documentation pointing to configurations and example grids. A local editable install is required for training, and an optional extra enables training a watermarking model.
Setup Path
AudioCraft requires Python 3.9 and PyTorch 2.1.0, and ffmpeg is recommended. Model files are fetched through Hugging Face, and the cache location can be changed with the AUDIOCRAFT_CACHE_DIR environment variable. Models relying on Demucs, such as musicgen-melody, download it via Torch Hub.
Licensing
The code is released under the MIT license, while the model weights are released under CC-BY-NC 4.0, which matters for how the pretrained models can be used.
Community Discussions
Be the first to start a conversation about AudioCraft
Share your experience with AudioCraft, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
AudioCraft code is released under the MIT license; model weights are under CC-BY-NC 4.0 (non-commercial).
- Code released under the MIT license
- Model weights released under CC-BY-NC 4.0 (noncommercial), not MIT
- Inference and training code for MusicGen, AudioGen, EnCodec, Multi Band Diffusion, MAGNeT, AudioSeal, MusicGen Style, JASCO
- Self-hosted PyTorch library; install via pip
Capabilities
Key Features
- Text-to-music generation with MusicGen
- Text-to-sound generation with AudioGen
- EnCodec neural audio codec
- Multi Band Diffusion decoder
- MAGNeT non-autoregressive generation
- AudioSeal audio watermarking
- MusicGen Style text-and-style-to-music
- JASCO music generation conditioned on chords, melodies and drums
- Training pipelines for EnCodec, MusicGen, Multi Band Diffusion and JASCO
- API documentation
