AudioCraft
AudioCraft is Meta AI's comprehensive open-source framework for generative audio research and applications, bringing together three specialized models under a single integrated platform: MusicGen for music generation, AudioGen for sound effect synthesis, and EnCodec for neural…
Key Highlights
Unified Audio Framework
Unifies MusicGen, AudioGen and EnCodec under a single consistent codebase, offering a complete toolkit for audio AI research
Modular Architecture
Separates audio tokenization from sequence modeling, enabling flexible experimentation with different model sizes and training strategies
EnCodec Neural Codec
Advanced neural audio codec technology that compresses audio into discrete tokens at various bitrates while maintaining high perceptual quality
Complete Training Infrastructure
Provides researchers with a comprehensive development environment including training scripts, evaluation tools and pre-trained model weights
About
AudioCraft is Meta AI's comprehensive open-source framework for generative audio research and applications. Released in 2023, this framework brings together three specialized models under a single integrated platform: MusicGen for music generation, AudioGen for sound effect synthesis, and EnCodec for neural audio compression. AudioCraft aims to provide researchers and developers with a standardized infrastructure for rapid experimentation in the audio AI domain.
AudioCraft's technical architecture is built upon the EnCodec neural audio codec. EnCodec compresses raw audio waveforms into 4 codebook layers at 50 Hz, creating high-quality representations at 32 kHz sample rate. These compressed representations serve as the working foundation for both MusicGen and AudioGen. Both models share an autoregressive transformer language model architecture but are specialized with different training data and target domains. MusicGen is trained on licensed music datasets, while AudioGen is trained on environmental sounds and sound effects datasets. This modular approach enables specialized models for different audio types to operate on the same infrastructure.
Performance metrics across AudioCraft's models are noteworthy. MusicGen achieves a FAD score of 3.80 on the MusicCaps benchmark set, while AudioGen produces competitive results on the AudioCaps dataset. EnCodec maintains high audio quality even at bit rates as low as 6 kbps, representing a significant advancement over traditional codecs. The framework supports various control mechanisms including text conditioning, melody conditioning, and style transfer capabilities.
In terms of applications, AudioCraft spans a wide range from academic research to commercial use cases. Researchers can leverage the framework's modular structure to develop new audio generation techniques. Game developers can create dynamic audio environments and adaptive music systems. Content creators can produce background music and sound effects for podcasts and videos. Telecommunications companies can benefit from EnCodec's low-bitrate audio compression capabilities for bandwidth optimization.
AudioCraft is fully open-source under the MIT license and accessible via GitHub. Its Python-based API can be easily installed via pip and is compatible with Jupyter notebook environments. The framework is built on PyTorch and optimized for NVIDIA GPUs. Through Hugging Face integration, pre-trained models can be easily downloaded and deployed for immediate use.
AudioCraft's position in the audio AI ecosystem is unique. Designed not as a standalone model but as a comprehensive research and application framework, it stands apart from competitors. Compared to Google's MusicLM or Stability AI's Stable Audio, AudioCraft distinguishes itself through open-source accessibility, modular architecture, and multi-model support. This approach aims to democratize research and development processes in audio AI, and its community-contribution-friendly structure ensures continuous evolution and improvement.
A more detailed examination of AudioCraft's technical infrastructure reveals how the shared codebase and common API design among the framework's models enhances research efficiency. Researchers can directly leverage the EnCodec tokenization infrastructure when developing new audio generation models and adapt the transformer architecture to their specific needs. AudioCraft also includes auxiliary components such as training pipelines, evaluation metrics, and data preprocessing tools. The framework supports multi-GPU training and is optimized for distributed training scenarios. Meta's FAIResearch team continues active development on AudioCraft, regularly releasing new model versions and improvements. This continuous development process makes AudioCraft one of the most dynamic open-source projects in the audio AI field, ensuring it remains at the forefront of generative audio research.
Use Cases
Audio AI Research
Conducting experiments on audio generation models in academic and industrial research laboratories
Music Production Tools
Building and integrating the AI engine behind professional music production software
Sound Design Applications
Developing tools for generating sound effects and ambient sounds for film, game and media projects
Interactive Audio Systems
Creating dynamic audio generation systems that respond in real-time to user input
Pros & Cons
Pros
- Comprehensive audio generation framework including MusicGen, AudioGen, and EnCodec in a unified library
- Multi-Band Diffusion decoder reduces audio artifacts, producing clearer and more natural stereo sound
- Melody-guided generation via chromagrams allows guiding music to follow extracted melodies while being faithful to text
- Trained on 20,000 hours of licensed music with vocals removed to prevent artist voice replication
- Open-source research framework with pre-trained models available on HuggingFace
Cons
- Requires GPU with minimum 16GB VRAM for local use, limiting accessibility
- Training dataset lacks diversity — contains mostly Western-style music with English text pairs only
- Pre-trained models may not be used commercially, restricting business applications
- Generated music lacks long-term structural coherence beyond short musical phrases
- Limited genre diversity in output due to dataset bias toward specific musical styles
Technical Details
Parameters
N/A
Architecture
Transformer-based framework with EnCodec neural codec
Training Data
Combination of licensed music (ShutterStock, Pond5) and environmental audio datasets
License
MIT
Features
- MusicGen Text-to-Music Model
- AudioGen Sound Effect Synthesis
- EnCodec Neural Audio Compression
- Melody Conditioning Support
- Multi-Scale Transformer Architecture
- Pre-trained Model Weights Library
Benchmark Results
| Metric | Value | Compared To | Source |
|---|---|---|---|
| Örnekleme Hızı | 32 kHz (EnCodec) | — | GitHub facebookresearch/audiocraft |
| Codebook Sayısı | 4 codebook @ 50 Hz | — | arXiv 2306.05284 |
| Maksimum Süre | 30 saniye | Stable Audio: 180 saniye | GitHub facebookresearch/audiocraft |
| FAD (MusicCaps) | 3.80 (MusicGen-Large) | Riffusion: 11.50 | arXiv 2306.05284 |
Available Platforms
Frequently Asked Questions
Related Models
AudioLDM 2
AudioLDM 2 is a unified audio generation framework developed by researchers at the Chinese University of Hong Kong and the University of Surrey, capable of producing music, sound effects, and speech from text descriptions within a single model. Building on the original AudioLDM, version 2 introduces a universal audio representation called Language of Audio that bridges the gap between different audio types by encoding them into a shared semantic space. The model combines a GPT-2 language model for understanding text inputs with an AudioMAE encoder for audio conditioning, feeding into a latent diffusion model that generates audio spectrograms which are converted to waveforms. This architecture enables AudioLDM 2 to handle diverse audio generation tasks without requiring separate specialized models for each audio type. The model achieves competitive performance across multiple benchmarks including text-to-music, text-to-sound-effects, and text-to-speech evaluations. AudioLDM 2 generates audio at up to 48 kHz with good perceptual quality for both musical and non-musical content. Released in August 2023 under a research license, the model is open source with code and pre-trained weights available on GitHub and Hugging Face. AudioLDM 2 supports audio inpainting, style transfer, and super-resolution in addition to text-conditioned generation. The model is particularly relevant for researchers studying unified audio generation, content creators needing diverse audio types from a single tool, and developers building comprehensive audio generation systems. Its unified approach to handling speech, music, and environmental sounds makes it a versatile foundation for multi-purpose audio applications.
Bark
Bark is a transformer-based text-to-audio generation model developed by Suno AI that converts text into natural-sounding speech, music, and sound effects. Released as open source under the MIT license in April 2023, Bark goes far beyond traditional text-to-speech systems by generating not only spoken words but also laughter, sighs, music, and ambient sounds from text descriptions. The model uses a GPT-style autoregressive transformer architecture with EnCodec audio tokenizer to generate audio tokens that are then decoded into waveforms. Bark supports multiple languages including English, Chinese, French, German, Hindi, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, and Turkish, making it one of the most multilingual open-source audio generation models available. The model can clone voice characteristics from short audio samples, allowing users to generate speech in specific voices or speaking styles. Bark operates in a zero-shot manner, meaning it can produce diverse outputs without task-specific fine-tuning. Generation includes natural prosody, emotion, and intonation that closely mimics human speech patterns. The model generates audio at 24 kHz sample rate with reasonable quality for most applications. As a fully open-source project with pre-trained weights available on Hugging Face and GitHub, Bark is widely used by developers building voice applications, content creators producing multilingual audio, and researchers exploring generative audio models. The model is particularly valued for its versatility in handling diverse audio types within a single unified architecture and its accessibility for rapid prototyping of audio generation applications.
MusicGen
MusicGen is a single-stage transformer-based music generation model developed by Meta AI Research as part of the AudioCraft framework. Released in June 2023 under the MIT license, MusicGen uses a single autoregressive language model operating over compressed discrete audio representations from EnCodec, unlike cascading approaches that require multiple models. The model comes in multiple sizes ranging from 300M to 3.3B parameters, allowing users to balance quality against computational requirements. MusicGen generates high-quality mono and stereo music at 32 kHz from text descriptions, supporting a wide range of genres, instruments, moods, and musical styles. Users can describe desired music using natural language prompts specifying genre, tempo, instrumentation, and atmosphere, and the model produces coherent musical compositions that follow the specified characteristics. Beyond text-to-music generation, MusicGen supports melody conditioning where an existing audio clip guides the melodic structure of the generated output, enabling more controlled music creation. The model achieves strong results across both objective metrics and subjective listening evaluations, producing music that sounds natural and musically coherent for durations up to 30 seconds. As a fully open-source model with code and weights available on GitHub and Hugging Face, MusicGen has become one of the most widely adopted AI music generation tools in both research and creative communities. It integrates easily into existing audio production workflows through the Audiocraft Python library and various community-built interfaces. MusicGen is particularly popular among content creators, game developers, and musicians who need royalty-free background music generated on demand.
MusicLM
MusicLM is a text-to-music generation model developed by Google Research that generates high-fidelity music from text descriptions at 24 kHz. Published in January 2023 alongside a research paper, MusicLM was one of the first models to demonstrate that AI could generate coherent, high-quality music spanning multiple minutes from natural language descriptions alone. The model employs a hierarchical sequence-to-sequence architecture combining SoundStream for audio tokenization and w2v-BERT for audio representation learning, generating music tokens at multiple temporal resolutions that are then decoded into waveforms. MusicLM can produce music in diverse genres and styles based on text prompts describing instruments, tempo, mood, and musical characteristics, maintaining musical coherence and structural consistency across extended durations. The model also supports melody conditioning where users can hum or whistle a melody that guides the generated output, enabling more intuitive music creation workflows. MusicLM generates audio with rich timbral quality and natural-sounding dynamics that represent a significant improvement over earlier text-to-music approaches. As a proprietary Google model, MusicLM is not open source and was initially accessible only through the AI Test Kitchen experimental platform before being integrated into broader Google services. While newer models like MusicGen and Suno have since achieved wider adoption, MusicLM remains historically significant as a pioneering demonstration of high-quality text-to-music generation. The model influenced subsequent research and commercial developments in the AI music generation space and helped establish text-to-music as a viable and rapidly advancing field of AI research.
Quick Info
Transformer-based framework with EnCodec neural codec