Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Audio Diffusion

by archinet.ai

A PyTorch audio diffusion library for unconditional and text-conditional generation, upsampling, vocoding and autoencoding.

AI music and sound generators Code libraryOpen source

GitHub repo
Two training tones we made with a formula, the random noise every sample starts from, and four new sounds the model made after 347 training steps on a laptop processor; they already fade out like the tones but are still noisy.
Made by AgentGid with audio-diffusion-pytorch 0.1.3 (PyPI) with torch 2.15.0 and a-unet 0.0.16, Python 3.11, CPU. MIT license. The training sounds come from a sine formula we wrote; no recordings of others are used.

2. Commercial use: LICENSE on GitHub

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”

MIT allows use in paid products; keep the notice with the code.

LICENSE on GitHub

License checked Oct 22, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error

Audio Diffusion: build and train your own sound generator

Audio Diffusion is a free Python code library for people who want to train their own AI that makes sound. It gives the building blocks for making new audio, audio from a text description, and sharper versions of low-quality recordings. It comes with no ready-trained model, so you need your own sound collection and computing time before it makes anything useful.

Where you can use it

A generator trained on your own sounds

A generator trained on your own sounds

Teach a model one kind of sound from your own recordings, such as drum hits or bird calls, and let it make new ones in the same style.

Sound from a text description

Train a model on sounds with short descriptions, then ask for a new sound by describing it in words.

Sharper sound from low-quality audio

Turn a muffled, low-quality recording into a clearer high-quality one, after training on pairs made from good recordings.

Filling a gap in a recording

Mark the parts of a recording you want to keep, and let a trained model fill in the missing or damaged part.

Turning a sound picture back into audio

In a speech or music system that works with spectrograms, use a trained model to turn them back into a sound file.

Sound effects for a small game Idea

Record a few dozen footsteps or clicks, train a small model, and get endless slight variations so effects do not repeat.

Audio Diffusion popularity

8 / 100
Gid Score, same scale as developer tools
2,095
GitHub stars
243
PyPI downloads, last 7 days
Audio Diffusion: downloads per weekPyPI, audio-diffusion-pytorch 183
Audio Diffusion: GitHub starsarchinetai/audio-diffusion-pytorch 2,095

Downloads from pypistats.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated

How to start

Tell your AI assistant

“In a project-local venv, install audio-diffusion-pytorch 0.1.3 with numpy, build a small one-channel DiffusionModel, train it on the WAV files in ./sounds cut to 4096 samples, and save four new samples as WAV files.”

Or install it yourself. It brings PyTorch with it.

pip install audio-diffusion-pytorch
Show code

Build a model, train it on your own audio, then turn noise into new audio. The README settings are only a starting point.

# Turn noise into new audio sample with diffusion
noise = torch.randn(1, 2, 2**18) # [batch_size, in_channels, length]
sample = model.sample(noise, num_steps=10) # Suggested num_steps 10-100

Mistakes to avoid

Looking for from_pretrained() or a model download to get sound right away
Train your own model on your own audio first, then call model.sample()

The library ships no trained weights.

Building a text-conditioned model without installing transformers
pip install transformers as well; the default text encoder is T5-base

Text conditioning uses t5-base embeddings from the transformers library.

Running the DiffusionAE example with only audio-diffusion-pytorch installed
Also install audio-encoders-pytorch, which provides MelE1d and TanhBottleneck

The autoencoder example imports its encoder from that separate package.

Copying the README sizes and expecting good results on a laptop
Start with a small model on short clips (our demo used 4 levels and 4096 samples) and scale up on a graphics card

The README settings are untested and large (2**18 samples, 9 levels up to 1024 channels).

Saving samples with .numpy() in a fresh environment
Install numpy next to torch in the same environment

In our demo environment torch warned that NumPy was missing, since the library does not install it.

License

MIT License. Free to use, change and share, also in paid products. Keep the copyright and license notice with copies of the code.

Commercial use
Yes

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” LICENSE on GitHub

Credit
Not needed

“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” LICENSE on GitHub

Inside your app or game
Can ship inside your app

“to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies” LICENSE on GitHub

Pass the files on to your users
With conditions

You may copy and share the code with the MIT notice.

“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” LICENSE on GitHub

AI training
Not stated
Bots and bulk downloads
Not stated

AllowedWith conditionsNot allowedNot stated or not checked yet

Is Audio Diffusion free for commercial use? The full answer Not legal advice. Check the license page before you ship.

For your agent

License rules tell your agent what it may do with Audio Diffusion. Paste them into your prompt or AGENTS.md.

License rules
- Audio Diffusion (AI music and sound generators). A PyTorch audio diffusion library for unconditional and text-conditional generation, upsampling, vocoding and autoencoding. Price: free; commercial use OK; no credit needed.
  Connect: PyPI audio-diffusion-pytorch.
  Rule: Keep the MIT license and copyright notice in all copies or substantial portions of the code you ship.
  Rule: Do not expect pre-trained models: the repo provides none, so you must train your own.
  Rule: Treat the README configs as indicative and untested; see the Moûsai paper for the configs used there.
  License: https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE (checked 2026-10-22; details: https://agentgid.com/assets/audio-diffusion/)
Can an agent use it by itself?
Yes.

Agent installs a package or loads it from a CDN.

Install
pip install audio-diffusion-pytorch
API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
Built with audio-diffusion-pytorch (MIT)
This card for machines

Alternatives

Audio Diffusion This page

Free Commercial OK PyPI

Meta AudioCraft (MusicGen, AudioGen)

Pick AudioCraft for ready-trained MusicGen and AudioGen models from Meta, if non-commercial use of the model files is enough.

Free Non-commercial PyPI

ACE-Step 1.5

Pick ACE-Step 1.5 when you want finished songs right away from a trained MIT model, not a toolkit to train your own.

Free Commercial OK Download

Bark

Pick Bark for a ready model that makes speech, music and simple sound effects from text.

Free Commercial OK Download

YuE

Original open lyrics-to-song model (2025) that generates full songs with vocals and accompaniment under Apache-2.0.

Free Commercial OK Download

YuE2

3B song generator that turns lyrics and a style prompt into full songs, with an editable melody and chord score.

Free With conditions Download

All ai music and sound generators

Questions

Can I make music with it right after installing?

No. It ships no trained model, so you first train one on your own audio.

What can it be trained to do?

Make new audio, make audio from a text description, compress audio, raise its quality, and turn spectrograms into sound.

How many steps should sampling use?

The README suggests 10 to 100 steps; more steps give better quality but take longer.

Can I use it in a paid product?

Yes. It is MIT licensed; keep the license notice with the code.