Generate high-quality instrumental music from natural language text prompts using Meta AI’s MusicGen model.
This project converts descriptive text (e.g., “lofi chill beats with soft piano”) into original music audio.
- Text → Music generation using state-of-the-art AI
- Supports multiple music styles and moods
- Adjustable duration, creativity, and model size
- Outputs high-quality
.wavaudio files - GPU accelerated (CPU supported but slower)
- MusicGen by Meta AI
- Pretrained transformer-based music generation model
- Generates coherent, style-controlled instrumental music
- Python 3.8+
- PyTorch
- Torchaudio
- Audiocraft (Meta AI)
Install Dependencies pip install torch torchaudio audiocraft 🎧 Prompt Ideas
Epic cinematic orchestral music with powerful drums
Upbeat EDM with strong bass and energetic drops
Jazz music with saxophone and smooth rhythm
Acoustic guitar with emotional melody
Indian classical fusion with tabla and flute 📈 Applications
AI-based music composition
Background music generation
Game and film soundtracks
Creative AI projects
Educational and research use
Instrumental music only (no vocals)
Long durations increase generation time
Requires significant GPU memory for large models
📜 License
This project uses pretrained models provided by Meta AI. Please follow the respective MusicGen / Audiocraft license for commercial usage.
🙌 Acknowledgements
Meta AI – MusicGen
PyTorch & Torchaudio teams
👤 Author
Ayush D Computer Science | Data Science | AI Projects
⭐ If you find this project useful, consider giving it a star!