The Patchbay_

AudioLDM 2

Latent diffusion model generating speech, sound effects and music from text through a shared audio representation.

LanguagePython
CategoryML & generative
LicenseCC-BY-NC-SA-4.0 (weights)
PlatformsLinux Windows macOS
Installpip install git+https://github.com/haoheliu/AudioLDM2.git
First released2023
MaintainedLimited
LinksProject · Source · Model

Strengths

Limitations

Best for

Research and experimentation across speech, sound and music with a single model — provided the non-commercial share-alike licence works for you.

Minimal example

# CLI
audioldm2 -t "Musical constellations twinkling in the night sky, forming a cosmic melody."

# Text-to-speech with an explicit transcription
audioldm2 -t "A female reporter is speaking full of emotion" \
          --transcription "Wish you have a good day"

# Pick a checkpoint and a device
audioldm2 --model_name "audioldm2-full" --device mps -t "gentle rain on leaves"
Share-alike is the catch. CC-BY-NC-SA is more restrictive than the CC-BY-NC used by MusicGen: as well as barring commercial use, it requires derivative works to carry the same licence. That matters if you fine-tune. See the licensing matrix.

Related tools

Stable Audio OpenAudioGenAudioCraft (MusicGen)Bark

Head to head

AudioLDM 2 vs Stable Audio Open

← Back to all tools