Skip to main content

This package is written for text-to-audio generation.

Project description

Text-to-Audio Generation

arXiv githubio Hugging Face Spaces Hugging Face Hub Replicate

Generate speech, sound effects, music and beyond.


  1. Prepare running environment
# Optional
conda create -n audioldm python=3.8; conda activate audioldm
# Install AudioLDM
pip3 install audioldm==0.0.6
  1. text-to-audio generation
# Test run
audioldm -t "A hammer is hitting a wooden surface"

For more options on guidance scale, batchsize, seed, etc, please run

audioldm -h

For the evaluation of audio generative model, please refer to audioldm_eval.

Web Demo

Integrated into Hugging Face Spaces 🤗 using Gradio. Try out the Web Demo Hugging Face Spaces

TODO

  • Update the checkpoint with more training steps.
  • Add AudioCaps finetuned AudioLDM-S model
  • Build pip installable package for commandline use
  • Add text-guided style transfer
  • Add audio super-resolution
  • Add audio inpainting

Cite this work

If you found this tool useful, please consider citing

@article{liu2023audioldm,
  title={AudioLDM: Text-to-Audio Generation with Latent Diffusion Models},
  author={Liu, Haohe and Chen, Zehua and Yuan, Yi and Mei, Xinhao and Liu, Xubo and Mandic, Danilo and Wang, Wenwu and Plumbley, Mark D},
  journal={arXiv preprint arXiv:2301.12503},
  year={2023}
}

Hardware requirement

  • GPU with 8GB of dedicated VRAM
  • A system with a 64-bit operating system (Windows 7, 8.1 or 10, Ubuntu 16.04 or later, or macOS 10.13 or later) 16GB or more of system RAM

Reference

Part of the code is borrowed from the following repos. We would like to thank the authors of these repos for their contribution.

https://github.com/LAION-AI/CLAP

https://github.com/CompVis/stable-diffusion

https://github.com/v-iashin/SpecVQGAN

https://github.com/toshas/torch-fidelity

We build the model with data from AudioSet, Freesound and BBC Sound Effect library. We share this demo based on the UK copyright exception of data for academic research.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audioldm-0.0.6.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audioldm-0.0.6-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file audioldm-0.0.6.tar.gz.

File metadata

  • Download URL: audioldm-0.0.6.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for audioldm-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a163b4b5d8a083b5cb64aeef67c55315df15baad637df6b747576c3343c7f55a
MD5 d34f9fd7b75f0e954f2f79a6e7b69c36
BLAKE2b-256 076948826614c24160489b5aced4b920ef04687947b2eae08d4720ab5e3a432a

See more details on using hashes here.

File details

Details for the file audioldm-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: audioldm-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.15

File hashes

Hashes for audioldm-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 aedaf5b0b7b98c1de5e4e79a4a97a165236bc71240865970876126c075a92264
MD5 e682b3ad67d66dc63d6bb93bf2f408bb
BLAKE2b-256 c69f7f6e90be6cdb29f3d2fcefd781a47c0abd24b00fcfa61721df387759f0b4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page