Views
No views yet
pip install git+https://github.com/declare-lab/TangoFluxgenerate function uses 25 steps by default to sample from the flow model. We recommend using 50 steps for generating better quality audios. This comes at the cost of increased run-time.1import torchaudio
2from tangoflux import TangoFluxInference
3from IPython.display import Audio
4
5model = TangoFluxInference(name='declare-lab/TangoFlux')
6audio = model.generate('Hammer slowly hitting the wooden table', steps=50, duration=10)
7
8Audio(data=audio, rate=44100)1@misc{hung2024tangofluxsuperfastfaithful,
2 title={TangoFlux: Super Fast and Faithful Text to Audio Generation with Flow Matching and Clap-Ranked Preference Optimization},
3 author={Chia-Yu Hung and Navonil Majumder and Zhifeng Kong and Ambuj Mehrish and Rafael Valle and Bryan Catanzaro and Soujanya Poria},
4 year={2024},
5 eprint={2412.21037},
6 archivePrefix={arXiv},
7 primaryClass={cs.SD},
8 url={https://arxiv.org/abs/2412.21037},
9}