declare-lab / tango

huggingface.co
Total runs: 54
24-hour runs: 0
7-day runs: 5
30-day runs: -4
Model's Last Updated: January 18 2026
text-to-audio

Introduction of tango

Model Details of tango

TANGO: Text to Audio using iNstruction-Guided diffusiOn

TANGO is a latent diffusion model for text-to-audio generation. TANGO can generate realistic audios including human sounds, animal sounds, natural and artificial sounds and sound effects from textual prompts. We use the frozen instruction-tuned LLM Flan-T5 as the text encoder and train a UNet based diffusion model for audio generation. We outperform current state-of-the-art models for audio generation across both objective and subjective metrics. We release our model, training, inference code and pre-trained checkpoints for the research community.

📣 We are releasing Tango-Full-FT-Audiocaps which was first pre-trained on TangoPromptBank , a collection of diverse text, audio pairs. We later fine tuned this checkpoint on AudioCaps. This checkpoint obtained state-of-the-art results for text-to-audio generation on AudioCaps.

Code

Our code is released here: https://github.com/declare-lab/tango

We uploaded several TANGO generated samples here: https://tango-web.github.io/

Please follow the instructions in the repository for installation, usage and experiments.

Quickstart Guide

Download the TANGO model and generate audio from a text prompt:

import IPython
import soundfile as sf
from tango import Tango

tango = Tango("declare-lab/tango")

prompt = "An audience cheering and clapping"
audio = tango.generate(prompt)
sf.write(f"{prompt}.wav", audio, samplerate=16000)
IPython.display.Audio(data=audio, rate=16000)

An audience cheering and clapping.webm

The model will be automatically downloaded and saved in cache. Subsequent runs will load the model directly from cache.

The generate function uses 100 steps by default to sample from the latent diffusion model. We recommend using 200 steps for generating better quality audios. This comes at the cost of increased run-time.

prompt = "Rolling thunder with lightning strikes"
audio = tango.generate(prompt, steps=200)
IPython.display.Audio(data=audio, rate=16000)

Rolling thunder with lightning strikes.webm

Use the generate_for_batch function to generate multiple audio samples for a batch of text prompts:

prompts = [
    "A car engine revving",
    "A dog barks and rustles with some clicking",
    "Water flowing and trickling"
]
audios = tango.generate_for_batch(prompts, samples=2)

This will generate two samples for each of the three text prompts.

Limitations

TANGO is trained on the small AudioCaps dataset so it may not generate good audio samples related to concepts that it has not seen in training (e.g. singing ). For the same reason, TANGO is not always able to finely control its generations over textual control prompts. For example, the generations from TANGO for prompts Chopping tomatoes on a wooden table and Chopping potatoes on a metal table are very similar. Chopping vegetables on a table also produces similar audio samples. Training text-to-audio generation models on larger datasets is thus required for the model to learn the composition of textual concepts and varied text-audio mappings.

We are training another version of TANGO on larger datasets to enhance its generalization, compositional and controllable generation ability.

Runs of declare-lab tango on huggingface.co

54
Total runs
0
24-hour runs
-2
3-day runs
5
7-day runs
-4
30-day runs

More Information About tango huggingface.co Model

tango huggingface.co

tango huggingface.co is an AI model on huggingface.co that provides tango's model effect (), which can be used instantly with this declare-lab tango model. huggingface.co supports a free trial of the tango model, and also provides paid use of the tango. Support call tango model through api, including Node.js, Python, http.

declare-lab tango online free

tango huggingface.co is an online trial and call api platform, which integrates tango's modeling effects, including api services, and provides a free online trial of tango, you can try tango online for free by clicking the link below.

declare-lab tango online free url in huggingface.co:

https://huggingface.co/declare-lab/tango

tango install

tango is an open source model from GitHub that offers a free installation service, and any user can find tango on GitHub to install. At the same time, huggingface.co provides the effect of tango install, users can directly use tango installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tango install url in huggingface.co:

https://huggingface.co/declare-lab/tango

Url of tango

Provider of tango huggingface.co

declare-lab
ORGANIZATIONS

Other API from declare-lab

huggingface.co

Total runs: 4.1K
Run Growth: 2.7K
Growth Rate: 64.99%
Updated:December 17 2023
huggingface.co

Total runs: 234
Run Growth: -323
Growth Rate: -138.03%
Updated:August 28 2025
huggingface.co

Total runs: 181
Run Growth: -194
Growth Rate: -107.18%
Updated:August 28 2025
huggingface.co

Total runs: 102
Run Growth: 47
Growth Rate: 46.08%
Updated:January 28 2025
huggingface.co

Total runs: 89
Run Growth: 27
Growth Rate: 30.34%
Updated:January 18 2026
huggingface.co

Total runs: 87
Run Growth: -13
Growth Rate: -14.94%
Updated:August 01 2025
huggingface.co

Total runs: 49
Run Growth: 0
Growth Rate: 0.00%
Updated:December 11 2025
huggingface.co

Total runs: 17
Run Growth: 2
Growth Rate: 11.76%
Updated:October 24 2022