← all repositories
riffusion/riffusion-hobby

Inactive pipeline that generates music by hallucinating spectrograms

It coerces Stable Diffusion into making audio by treating spectrograms as images and converting them back into sound.

3.9k stars Python Image · Video · Audio
riffusion-hobby
Not currently ranked — collecting fresh signals.
star history

What it does Riffusion is a Python library that repurposes Stable Diffusion to generate music and audio. It generates and interpolates spectrogram images using a diffusion pipeline, then converts those images into actual audio clips. The repo includes a Streamlit playground, a Flask inference server, and command-line utilities for image-to-audio tasks.

The interesting bit The whole trick is treating frequency plots as paintings. Because the model operates on spectrograms as if they were ordinary images, you can use standard image diffusion techniques—like prompt interpolation and image conditioning—to steer audio generation without designing a new neural architecture.

Key highlights

  • Generates audio by running Stable Diffusion on spectrogram images
  • Supports prompt interpolation with image conditioning for sound transitions
  • Ships with a Streamlit UI, Flask API server, and CLI tools
  • Real-time generation requires a high-end GPU such as a 3090 or A10G
  • Explicitly no longer actively maintained

Caveats

  • Project is no longer actively maintained
  • CPU inference is “quite slow”; Apple Silicon MPS falls back to CPU for audio processing and is non-deterministic
  • Tested only with diffusers 0.9–0.11 and Python 3.9/3.10

Verdict Worth exploring if you want to see how an image model can be pressed into service as a music generator, or if you need local spectrogram-to-audio utilities. Look elsewhere for a maintained, production-ready audio synthesis pipeline.

Frequently asked

What is riffusion/riffusion-hobby?
It coerces Stable Diffusion into making audio by treating spectrograms as images and converting them back into sound.
Is riffusion-hobby open source?
Yes — riffusion/riffusion-hobby is open source, released under the MIT license.
What language is riffusion-hobby written in?
riffusion/riffusion-hobby is primarily written in Python.
How popular is riffusion-hobby?
riffusion/riffusion-hobby has 3.9k stars on GitHub.
Where can I find riffusion-hobby?
riffusion/riffusion-hobby is on GitHub at https://github.com/riffusion/riffusion-hobby.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.