Skip to content

How-ToGPU

How to Add AI Sound Effects to Video Locally with MMAudio

MMAudio is a free, open-source AI model that watches a video and generates matching sound effects on your own PC, or makes sounds from a text prompt. Using the developers' documentation and code, we explain how to install it, which model to choose, how to add sound to a clip, and how to use its browser interface or ComfyUI nodes.

By , Systems & Technical Editor

6 min read

How to Add AI Sound Effects to Video Locally with MMAudio

Local AI video models can produce impressive clips, but many of them come out silent. MMAudio is a free, open-source model that watches a video and generates matching sound effects for it, and it runs on your own PC rather than a cloud service. This guide is based on the MMAudio developers' own documentation and code.

What MMAudio does

MMAudio comes from researchers at the University of Illinois Urbana-Champaign, Sony AI and Sony Group Corporation, and the paper behind it was presented at CVPR 2025. The developers say it "generates synchronized audio given video and/or text inputs". In practice that gives you two modes:

  • Video-to-audio: give it a clip of footsteps on gravel or a door slamming and it tries to produce sounds that match what's on screen, lined up with the action. A synchronisation module aligns the generated audio with the video frames.

  • Text-to-audio: leave the video out and describe the sound you want instead.

You can add a text prompt to a video as well, which helps steer the result when the picture alone is ambiguous.

What you need

  • An NVIDIA graphics card is the practical choice. The setup instructions install PyTorch with CUDA. The developers say inference "only takes around 6GB of GPU memory (in 16-bit mode)", which they note should fit most modern GPUs. An 8GB card such as the MSI RTX 5060 8GB Ventus 2X OC is above that figure, while a 16GB card such as the ASUS RTX 5060 Ti 16GB Dual OC leaves more room if you also run a video generator on the same machine.

  • Python 3.9 or newer and PyTorch 2.5.1 or newer, with the matching torchvision and torchaudio. The developers recommend a miniforge environment.

  • Disk space for the models. The recommended large_44k_v2 network is 3.9GB on its own, and it also needs the 44.1kHz VAE (1.2GB), the Synchformer visual encoder (907MB) and a vocoder and CLIP model, which download automatically.

  • Some patience with Windows. The README says "We have only tested this on Ubuntu." That doesn't mean it can't run on Windows, but the developers don't promise it. If you'd rather stay in a familiar interface on Windows, the ComfyUI route below is worth a look.

Step 1: install PyTorch and MMAudio

Create and activate a fresh Python environment first, then install PyTorch with CUDA. The developers' example uses CUDA 11.8, but you can pick whichever CUDA version your GPU driver supports from the PyTorch website:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --upgrade

Then clone the repository and install MMAudio:

git clone https://github.com/hkchengrex/MMAudio.git
cd MMAudio
pip install -e .

The developers stress that PyTorch must be installed before this step. If you see a "setup.py not found" error, upgrade pip with pip install --upgrade pip and try again.

You don't need to download the model weights by hand. They download automatically the first time you run the demo script, and the developers publish MD5 checksums for them.

Step 2: choose a model

The demo script's --variant option accepts five networks:

Variant

Sample rate

Network file size

small_16k

16kHz

601MB

small_44k

44.1kHz

601MB

medium_44k

44.1kHz

2.4GB

large_44k

44.1kHz

3.9GB

large_44k_v2 (default, recommended)

44.1kHz

3.9GB

The developers recommend large_44k_v2 and it's the default. Their model notes are refreshingly honest: the v2 model "performs worse in benchmarking", but in the developer's own experience it "generalizes better to new data". For real clips from your own projects, that's the one to start with. The smaller models are there if you want quicker experiments or are short on disk space.

Step 3: add sound to a video

With the environment active and your clip ready, run:

python demo.py --duration=8 --video=path\to\clip.mp4 --prompt "footsteps on gravel, light wind"

MMAudio saves two files in the output folder: a .flac audio file and an .mp4 with the new soundtrack added to your video. If you only want the audio, the --skip_video_composite option skips building the video.

A few things to know about length. The default output duration is 8 seconds, and that's also what the models were trained on. The developers say longer or shorter durations "could also work", but a large deviation from 8 seconds may lower the quality. For a longer edit, it often makes sense to generate sound for shorter shots separately and mix them in your video editor.

Other useful options in demo.py:

  • --negative_prompt to describe sounds you don't want, such as music or speech

  • --seed (default 42) to get a different take on the same clip

  • --num_steps (default 25) and --cfg_strength (default 4.5) to adjust the generation

  • --variant to switch models

  • --full_precision to turn off the default 16-bit mode, which will use more memory

Step 4: generate sound from text only

To make a standalone sound effect, simply leave out --video:

python demo.py --duration=8 --prompt "heavy wooden door creaking open"

That's handy for building a small library of effects for a game mod or a podcast intro.

Using the browser interface instead

If you prefer clicking to typing, run:

python gradio_demo.py

This opens a local web interface on port 7860 (change it with --port). It supports video-to-audio and text-to-audio. There's also an experimental image-to-audio mode that repeats a still image as a video, though the developers point out it's not something MMAudio was trained for.

Using MMAudio in ComfyUI

If you already generate video in ComfyUI, kijai's ComfyUI-MMAudio custom nodes let you add audio in the same workflow. The project is clearly labelled as a work in progress. To install it, clone the repository into ComfyUI's custom_nodes folder and install its requirements. On the Windows portable build, the README gives this command, run from the ComfyUI_windows_portable folder:

python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-MMAudio\requirements.txt

The nodes load models from ComfyUI/models/mmaudio, and kijai provides safetensors versions of the weights on Hugging Face. If you're new to custom nodes, our guide to installing custom nodes with ComfyUI Manager explains the basics.

Tips for better results

  • Don't feed it 4K. The developers say that higher-resolution video takes longer to process, because encoding and decoding can account for more than 95% of the processing time, but it doesn't improve the results. Internally, the CLIP encoder resizes frames to 384x384, and Synchformer looks only at a centre-cropped square, so keep the action near the middle of the frame.

  • Write a short, concrete prompt. The developers note that the model struggles with unfamiliar concepts. Their example is that it can generate "gunfires" but not "RPG firing". Plain, everyday descriptions are more likely to work.

  • Watch for stray voices and music. Known limitations include unintelligible speech-like sounds and unwanted background music. A negative prompt and a different seed are the first things to try.

  • Check the licence before you publish. The MMAudio code is MIT-licensed, but the model checkpoints are released under CC-BY-NC 4.0, which doesn't allow commercial use. The developers also say they don't guarantee the models are suitable for commercial use. Fine for hobby projects; check carefully before using the audio in anything you sell or monetise.

Other ways to add AI sound

MMAudio isn't the only option. ThinkSound adds step-by-step reasoning and audio editing and includes Windows setup scripts, and we compare the two in MMAudio vs ThinkSound. For text-only effects, Stable Audio Open and TangoFlux are also worth a look, and our best local AI sound effect generators guide covers all of them. To make the silent video in the first place, see Wan 2.2 vs LTX 2.5, and for music rather than effects, see our best local AI music generators.

The bottom line

MMAudio is a free way to add synchronised AI sound effects to silent video on your own PC, using either the command-line demo.py script, a local browser interface or kijai's ComfyUI nodes. The developers say it needs around 6GB of GPU memory in 16-bit mode, and the default large_44k_v2 model is the one to start with. The developers have only tested it on Ubuntu and the model weights are for non-commercial use only. Forge PC hasn't tested the output, so generate a few takes and keep the best one.

In this article

Sources

  1. 01hkchengrex, MMAudio README on GitHub
  2. 02hkchengrex, MMAudio pretrained models (MODELS.md)
  3. 03hkchengrex, MMAudio demo script (demo.py)
  4. 04arXiv, MMAudio: Taming Multimodal Joint Training for High-Quality Video-to-Audio Synthesis
  5. 05kijai, ComfyUI-MMAudio on GitHub

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Best GPU for Blender in 2026

Best Picks

Best GPU for Blender in 2026

Building or upgrading a PC for Blender rendering? The GPU and its VRAM matter most. We pick the RTX 5070 Ti, RTX 5090, RTX 5060 Ti 16GB, Arc B580, RX 9070 XT and Radeon AI PRO R9700 using the Blender manual, official specs and Puget Systems' credited test results.

Hannah Vance8 min

DLAA vs DLSS: Which NVIDIA Setting Should You Use?

Versus

DLAA vs DLSS: Which NVIDIA Setting Should You Use?

DLAA and DLSS Super Resolution use the same NVIDIA AI model but do opposite jobs: DLSS renders at a lower resolution and upscales for more frames, while DLAA stays at native resolution and uses AI purely for anti-aliasing. Using NVIDIA's documentation, we compare image quality goals, performance, RTX support and models, and show how to enable DLAA with the NVIDIA app.

Callum Reid5 min

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

How-To

How to Set Up PCSX2 on Windows: Play Your PS2 Games on PC

PCSX2 can play much of the PlayStation 2 library on a Windows PC at higher resolutions than the original console. Using PCSX2's official documentation, we explain the hardware you need, how to install it, how to dump the BIOS from your own PS2 and your game discs, which renderer to choose, how to save safely and what to check if games run slowly.

Marcus Thorne8 min

Best Local AI Video Translation and Dubbing Tools in 2026

Best Picks

Best Local AI Video Translation and Dubbing Tools in 2026

Free AI tools can now transcribe a video, translate it and dub it into another language on your own PC. We pick the best: pyVideoTrans, VideoLingo, OpenCreator (formerly KrillinAI) and SoniTranslate, comparing offline use, languages, voices, setup, licences and hardware from each project's official docs.

Hannah Vance5 min