declare-lab / tango-music-af-ft-mc

huggingface.co
Total runs: 19
24-hour runs: 0
7-day runs: 10
30-day runs: 2
Model's Last Updated: July 04 2024
text-to-audio

Introduction of tango-music-af-ft-mc

Model Details of tango-music-af-ft-mc

Improving Text-To-Audio Models with Synthetic Captions

🎵 We propose an audio captioning pipeline that uses an audio language model to synthesize accurate and diverse captions for audio at scale. We leverage this pipeline to produce a dataset of synthetic captions for AudioSet, named AF-AudioSet. We then pre-train our Tango family of text-to-audio models on these synthetic captions. 🎶

This checkpoint was fine-tuned on the MusicCaps dataset

Read the paper

Code

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

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

Quickstart Guide

Download the model and generate music from a text prompt:

import IPython
import soundfile as sf
from tango import Tango

tango = Tango("declare-lab/tango-music-af-ft-mc")

prompt = "The song has a traditional jazzy feel to it. The piano chord progression is bouncy and light. The electric guitar has a chorus applied to it, and we hear various licks being played."
audio = tango.generate(prompt)
sf.write(f"{prompt}.wav", audio, samplerate=16000)
IPython.display.Audio(data=audio, rate=16000)

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 = "The song has a traditional jazzy feel to it. The piano chord progression is bouncy and light. The electric guitar has a chorus applied to it, and we hear various licks being played."
audio = tango.generate(prompt, steps=200)
IPython.display.Audio(data=audio, rate=16000)

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

prompts = [
    "This song is a fusion of alternative and folk genres, highlighting simple yet soulful melodies and minimalist instrumentals.",
    "The instrumental music features an ensemble that resembles the orchestra. The melody is being played by a brass section while strings provide harmonic accompaniment.",
    "This music is instrumental. The tempo is fast with a lively keyboard harmony, steady drumming, groovy bass lines and harmonica melodic. The song is fresh, groovy, sunny, happy; vivacious and spirited."
]
audios = tango.generate_for_batch(prompts, samples=2)

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

Citation

Please consider citing the following article if you found our work useful:

@article{kong2024improving,
  title={Improving Text-To-Audio Models with Synthetic Captions},
  author={Kong, Zhifeng and Lee, Sang-gil and Ghosal, Deepanway and Majumder, Navonil and Mehrish, Ambuj and Valle, Rafael and Poria, Soujanya and Catanzaro, Bryan},
  journal={arXiv preprint arXiv:2406.15487},
  year={2024}
}

Runs of declare-lab tango-music-af-ft-mc on huggingface.co

19
Total runs
0
24-hour runs
3
3-day runs
10
7-day runs
2
30-day runs

More Information About tango-music-af-ft-mc huggingface.co Model

More tango-music-af-ft-mc license Visit here:

https://choosealicense.com/licenses/other

tango-music-af-ft-mc huggingface.co

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

tango-music-af-ft-mc huggingface.co Url

https://huggingface.co/declare-lab/tango-music-af-ft-mc

declare-lab tango-music-af-ft-mc online free

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

declare-lab tango-music-af-ft-mc online free url in huggingface.co:

https://huggingface.co/declare-lab/tango-music-af-ft-mc

tango-music-af-ft-mc install

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

tango-music-af-ft-mc install url in huggingface.co:

https://huggingface.co/declare-lab/tango-music-af-ft-mc

Url of tango-music-af-ft-mc

tango-music-af-ft-mc huggingface.co Url

Provider of tango-music-af-ft-mc 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: 54
Run Growth: -4
Growth Rate: -7.41%
Updated:January 18 2026
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