{
 "slug": "audio-diffusion",
 "name": "Audio Diffusion",
 "author": "archinet.ai",
 "density": "full",
 "status": "active",
 "status_note": null,
 "alternatives_page": null,
 "one_liner": "A PyTorch audio diffusion library for unconditional and text-conditional generation, upsampling, vocoding and autoencoding.",
 "category": {
  "slug": "ai-music",
  "name": "AI music and sound generators"
 },
 "tags": [
  "Code library",
  "Open source"
 ],
 "styles": [],
 "logo_url": "https://agentgid.com/media/avatars/archinetai.png",
 "logo_letter": "A",
 "links": {
  "repo": "https://github.com/archinetai/audio-diffusion-pytorch",
  "website": null,
  "api_docs": null,
  "open_model": null
 },
 "preview": {
  "kind": "image_grid",
  "src": "https://agentgid.com/assets/audio-diffusion/demo.jpg",
  "alt": "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.",
  "caption": "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."
 },
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free",
   "status": "yes",
   "sub": "No paid plan",
   "quote": null,
   "note": "Free MIT-licensed open-source code.",
   "source": {
    "label": "github.com/archinetai/audio-diffusion-pytorch",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch"
   },
   "n": 1
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "Yes",
   "status": "yes",
   "sub": "MIT License",
   "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
   "note": "MIT allows use in paid products; keep the notice with the code.",
   "source": {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE"
   },
   "n": 2
  },
  {
   "key": "credit",
   "label": "Credit the author",
   "value": "Not needed",
   "status": "yes",
   "sub": "Keep the notice in code copies",
   "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
   "note": "No credit on screen. Keep the license notice inside the code you ship.",
   "source": {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE"
   },
   "n": 3
  },
  {
   "key": "agent_access",
   "label": "Agent access",
   "value": "PyPI package",
   "status": "info",
   "sub": "Installs without a key",
   "quote": null,
   "note": "An agent can install it by itself with pip install audio-diffusion-pytorch.",
   "source": {
    "label": "github.com/archinetai/audio-diffusion-pytorch",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch"
   },
   "n": 4
  }
 ],
 "license": {
  "name": "MIT License",
  "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE",
  "summary": "Free to use, change and share, also in paid products. Keep the copyright and license notice with copies of the code.",
  "pages_read": 1,
  "rules": [
   "Keep the MIT license and copyright notice in all copies or substantial portions of the code you ship.",
   "Do not expect pre-trained models: the repo provides none, so you must train your own.",
   "Treat the README configs as indicative and untested; see the Moûsai paper for the configs used there."
  ],
  "rows": [
   {
    "label": "Commercial use",
    "value": "Yes",
    "status": "yes",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE"
    },
    "note": null
   },
   {
    "label": "Credit",
    "value": "Not needed",
    "status": "yes",
    "quote": "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE"
    },
    "note": null
   },
   {
    "label": "Inside your app or game",
    "value": "Can ship inside your app",
    "status": "yes",
    "quote": "to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE"
    },
    "note": null
   },
   {
    "label": "Pass the files on to your users",
    "value": "With conditions",
    "status": "cond",
    "quote": "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
    "source": {
     "label": "LICENSE on GitHub",
     "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/main/LICENSE"
    },
    "note": "You may copy and share the code with the MIT notice."
   },
   {
    "label": "AI training",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   },
   {
    "label": "Bots and bulk downloads",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   }
  ],
  "checked_at": "2026-10-22",
  "commercial_use_page": "https://agentgid.com/assets/audio-diffusion/commercial-use/"
 },
 "overview": {
  "heading": "Audio Diffusion: build and train your own sound generator",
  "body": "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."
 },
 "uses": [
  {
   "title": "A generator trained on your own sounds",
   "text": "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.",
   "idea": false,
   "image": "https://agentgid.com/assets/audio-diffusion/demo.jpg"
  },
  {
   "title": "Sound from a text description",
   "text": "Train a model on sounds with short descriptions, then ask for a new sound by describing it in words.",
   "idea": false,
   "image": null
  },
  {
   "title": "Sharper sound from low-quality audio",
   "text": "Turn a muffled, low-quality recording into a clearer high-quality one, after training on pairs made from good recordings.",
   "idea": false,
   "image": null
  },
  {
   "title": "Filling a gap in a recording",
   "text": "Mark the parts of a recording you want to keep, and let a trained model fill in the missing or damaged part.",
   "idea": false,
   "image": null
  },
  {
   "title": "Turning a sound picture back into audio",
   "text": "In a speech or music system that works with spectrograms, use a trained model to turn them back into a sound file.",
   "idea": false,
   "image": null
  },
  {
   "title": "Sound effects for a small game",
   "text": "Record a few dozen footsteps or clicks, train a small model, and get endless slight variations so effects do not repeat.",
   "idea": true,
   "image": null
  }
 ],
 "start": {
  "prompt": "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.",
  "install": "pip install audio-diffusion-pytorch",
  "install_note": "It brings PyTorch with it.",
  "code": [
   {
    "tab": "Step 1",
    "intro": "Build a model, train it on your own audio, then turn noise into new audio. The README settings are only a starting point.",
    "source": "# Turn noise into new audio sample with diffusion\nnoise = torch.randn(1, 2, 2**18) # [batch_size, in_channels, length]\nsample = model.sample(noise, num_steps=10) # Suggested num_steps 10-100"
   }
  ]
 },
 "mistakes": [
  {
   "dont": "Looking for from_pretrained() or a model download to get sound right away",
   "fix": "Train your own model on your own audio first, then call model.sample()",
   "why": "The library ships no trained weights.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Building a text-conditioned model without installing transformers",
   "fix": "pip install transformers as well; the default text encoder is T5-base",
   "why": "Text conditioning uses t5-base embeddings from the transformers library.",
   "dont_code": false,
   "fix_code": true
  },
  {
   "dont": "Running the DiffusionAE example with only audio-diffusion-pytorch installed",
   "fix": "Also install audio-encoders-pytorch, which provides MelE1d and TanhBottleneck",
   "why": "The autoencoder example imports its encoder from that separate package.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Copying the README sizes and expecting good results on a laptop",
   "fix": "Start with a small model on short clips (our demo used 4 levels and 4096 samples) and scale up on a graphics card",
   "why": "The README settings are untested and large (2**18 samples, 9 levels up to 1024 channels).",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Saving samples with .numpy() in a fresh environment",
   "fix": "Install numpy next to torch in the same environment",
   "why": "In our demo environment torch warned that NumPy was missing, since the library does not install it.",
   "dont_code": false,
   "fix_code": false
  }
 ],
 "agent": {
  "self_serve": true,
  "self_serve_text": "Agent installs a package or loads it from a CDN",
  "install": "pip install audio-diffusion-pytorch",
  "repo": "https://github.com/archinetai/audio-diffusion-pytorch",
  "api_docs": null,
  "api_account": "Not needed. Everything runs on your side.",
  "get_files": null,
  "formats": [],
  "limits": null,
  "mcp": null,
  "mcp_url": null,
  "credit_line": "Built with audio-diffusion-pytorch (MIT)",
  "rules_text": "- 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.\n  Connect: PyPI audio-diffusion-pytorch.\n  Rule: Keep the MIT license and copyright notice in all copies or substantial portions of the code you ship.\n  Rule: Do not expect pre-trained models: the repo provides none, so you must train your own.\n  Rule: Treat the README configs as indicative and untested; see the Moûsai paper for the configs used there.\n  License: https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE (checked 2026-10-22; details: https://agentgid.com/assets/audio-diffusion/)",
  "agent_md": "https://agentgid.com/assets/audio-diffusion/agent.md",
  "card_json": "https://agentgid.com/assets/audio-diffusion/card.json"
 },
 "popularity": {
  "gid_score": 8,
  "stars": 2095,
  "downloads_7d": 243,
  "downloads_7d_label": "243",
  "downloads_change_4w_pct": null,
  "eco": "pypi",
  "package": "audio-diffusion-pytorch",
  "repo": "archinetai/audio-diffusion-pytorch",
  "agent_projects": null,
  "agent_projects_total": null,
  "downloads_unconfirmed": false,
  "series": {
   "downloads_weekly": [
    [
     "2026-04-13",
     234
    ],
    [
     "2026-04-20",
     239
    ],
    [
     "2026-04-27",
     345
    ],
    [
     "2026-05-04",
     978
    ],
    [
     "2026-05-11",
     1810
    ],
    [
     "2026-05-18",
     1028
    ],
    [
     "2026-05-25",
     779
    ],
    [
     "2026-06-01",
     1808
    ],
    [
     "2026-06-08",
     475
    ],
    [
     "2026-06-15",
     717
    ],
    [
     "2026-06-22",
     519
    ],
    [
     "2026-06-29",
     993
    ],
    [
     "2026-07-06",
     154
    ],
    [
     "2026-07-13",
     110
    ],
    [
     "2026-07-20",
     166
    ],
    [
     "2026-07-27",
     158
    ],
    [
     "2026-08-03",
     171
    ],
    [
     "2026-08-10",
     164
    ],
    [
     "2026-08-17",
     250
    ],
    [
     "2026-08-24",
     127
    ],
    [
     "2026-08-31",
     150
    ],
    [
     "2026-09-07",
     76
    ],
    [
     "2026-09-14",
     63
    ],
    [
     "2026-09-21",
     91
    ],
    [
     "2026-09-28",
     70
    ],
    [
     "2026-10-05",
     63
    ],
    [
     "2026-10-12",
     157
    ],
    [
     "2026-10-19",
     279
    ],
    [
     "2026-10-26",
     443
    ],
    [
     "2026-11-02",
     108
    ],
    [
     "2026-11-09",
     165
    ],
    [
     "2026-11-16",
     183
    ]
   ],
   "stars": [
    [
     "2026-11-07",
     2097
    ],
    [
     "2026-11-08",
     2097
    ],
    [
     "2026-11-09",
     2097
    ],
    [
     "2026-11-10",
     2097
    ],
    [
     "2026-11-11",
     2097
    ],
    [
     "2026-11-12",
     2097
    ],
    [
     "2026-11-13",
     2097
    ],
    [
     "2026-11-14",
     2097
    ],
    [
     "2026-11-15",
     2097
    ],
    [
     "2026-11-16",
     2097
    ],
    [
     "2026-11-17",
     2097
    ],
    [
     "2026-11-18",
     2096
    ],
    [
     "2026-11-19",
     2096
    ],
    [
     "2026-11-20",
     2095
    ],
    [
     "2026-11-21",
     2095
    ],
    [
     "2026-11-22",
     2095
    ],
    [
     "2026-11-23",
     2095
    ],
    [
     "2026-11-24",
     2095
    ],
    [
     "2026-11-25",
     2095
    ],
    [
     "2026-11-26",
     2095
    ]
   ]
  },
  "stars_flat_since": null,
  "updated_at": "2026-11-26"
 },
 "alternatives": [
  {
   "slug": "audio-diffusion",
   "name": "Audio Diffusion",
   "why": null,
   "current": true,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "PyPI"
  },
  {
   "slug": "audiocraft",
   "name": "Meta AudioCraft (MusicGen, AudioGen)",
   "why": "Pick AudioCraft for ready-trained MusicGen and AudioGen models from Meta, if non-commercial use of the model files is enough.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Non-commercial",
    "status": "no"
   },
   "access": "PyPI"
  },
  {
   "slug": "ace-step",
   "name": "ACE-Step 1.5",
   "why": "Pick ACE-Step 1.5 when you want finished songs right away from a trained MIT model, not a toolkit to train your own.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "bark",
   "name": "Bark",
   "why": "Pick Bark for a ready model that makes speech, music and simple sound effects from text.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "yue",
   "name": "YuE",
   "why": "Original open lyrics-to-song model (2025) that generates full songs with vocals and accompaniment under Apache-2.0.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "yue2",
   "name": "YuE2",
   "why": "3B song generator that turns lyrics and a style prompt into full songs, with an editable melody and chord score.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "Download"
  }
 ],
 "faq": [
  {
   "q": "Can I make music with it right after installing?",
   "a": "No. It ships no trained model, so you first train one on your own audio."
  },
  {
   "q": "What can it be trained to do?",
   "a": "Make new audio, make audio from a text description, compress audio, raise its quality, and turn spectrograms into sound."
  },
  {
   "q": "How many steps should sampling use?",
   "a": "The README suggests 10 to 100 steps; more steps give better quality but take longer."
  },
  {
   "q": "Can I use it in a paid product?",
   "a": "Yes. It is MIT licensed; keep the license notice with the code."
  }
 ],
 "at_a_glance": {
  "latest_version": "0.1.3",
  "last_release": "2023-02-26",
  "last_commit": "2023-06-12",
  "runtime": "Python with torch >= 1.6, torchaudio and a-unet (installed with it); our demo ran on Python 3.11 with torch 2.15.0. Text conditioning also needs transformers; the autoencoder example needs audio-encoders-pytorch.",
  "key_needed": false
 },
 "good_to_know": [
  "No trained model is included. You must train one yourself on your own sounds, which takes data and computing time.",
  "The settings shown in the README are untested examples; the research paper lists the settings the authors used.",
  "The last release, 0.1.3, came out in February 2023, so expect no new features or fixes.",
  "Describing sounds in words needs an extra library and a text model that it downloads."
 ],
 "stack_snippets": [],
 "claims": [],
 "checked": {
  "license_read": "2026-10-22",
  "overview_checked": "2026-11-19",
  "numbers_updated": "2026-11-26",
  "sources": [
   {
    "label": "github.com/archinetai/audio-diffusion-pytorch",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch"
   },
   {
    "label": "README on GitHub",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/main/README.md"
   },
   {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/main/LICENSE"
   },
   {
    "label": "github.com/archinetai/audio-diffusion-pytorch/blob/main/setup.py",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/main/setup.py"
   },
   {
    "label": "pypi.org",
    "url": "https://pypi.org/pypi/audio-diffusion-pytorch/json"
   },
   {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/archinetai/a-unet/blob/main/LICENSE"
   },
   {
    "label": "arxiv.org/abs/2301.11757",
    "url": "https://arxiv.org/abs/2301.11757"
   },
   {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/archinetai/audio-diffusion-pytorch/blob/HEAD/LICENSE"
   }
  ],
  "unverified": null
 },
 "user_reports": null,
 "url": "https://agentgid.com/assets/audio-diffusion/",
 "note": "Written by AgentGid from the official pages in checked.sources; quotes are copied from those pages. status: yes | cond | no | unknown | info. Prices and vendor claims are as reported on the checked date. Not legal advice."
}
