Practical overview
When it fits
Use Mustango when you want to explore music generation from descriptive text or work with a research codebase for controllable text-to-music generation.
Who it is for
- Musicians and creators exploring text-led soundtrack or jingle concepts.
- Researchers building prototypes for controllable music generation.
Documented uses
- Generate music from a description of instruments, tempo, rhythm or mood.
- Save generated audio as a WAV file and play it in an IPython notebook.
- Train Mustango using the MusicBench dataset and Hugging Face Accelerate.
Requirements & limits
The repository is public and MIT-licensed. The project links to hosted demos on Hugging Face and Replicate.
- The Python quickstart saves generated audio at a 16 kHz sample rate.
- The repository documents installation and training commands, but does not specify deployment environments or hardware requirements.
- The README describes MusicBench as containing 52,000 music fragments with captions and recommends at least 40 training epochs from scratch.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install Mustango and generate a prompt-based music file
Set up the repository and use its documented Python quickstart to generate and save music from a text prompt.
Before you start
- Python environment able to install the repository's requirements.
- Mustango repository and included Diffusers code.
Steps
Clone https://github.com/AMAAI-Lab/mustango and change into the mustango directory.
Install dependencies with the command below.
pip install -r requirements.txtChange into
diffusersand install it with the command below.pip install -e .In Python, load
Mustango("declare-lab/mustango"), pass a text prompt tomodel.generate(prompt), and save the returned audio withsoundfile.writeat a 16000 Hz sample rate.
Expected outcome
A generated music array saved as a WAV file; the README also shows how to play it in IPython.
Guide limitations
- The README does not specify hardware requirements or execution environments.
- The steps reflect the repository instructions and are not a compatibility guarantee.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- AMAAI-Lab/mustango · Official homepage title · retained in its source language

