OpenViSTAI · Agents · Blockchain · Crypto
Menu
Audio & Voice AI

Mustango

Mustango is an open-source text-to-music generation model that uses latent diffusion, Flan-T5 and musical features to produce music from prompts.

Independent OpenViST project profile, based on linked sources.

Mustango — Prompt-driven music generation
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Clone https://github.com/AMAAI-Lab/mustango and change into the mustango directory.

  2. Install dependencies with the command below.

    Documented command
    pip install -r requirements.txt
  3. Change into diffusers and install it with the command below.

    Documented command
    pip install -e .
  4. In Python, load Mustango("declare-lab/mustango"), pass a text prompt to model.generate(prompt), and save the returned audio with soundfile.write at 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.
Evidence and transparency

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