MOSS-SoundEffect-v2.0: Text-to-Audio Setup and Settings
MOSS-SoundEffect-v2.0 is an open text-to-audio model from MOSI.AI and OpenMOSS with a 1.3B DiT backbone trained with Flow Matching. This guide covers the change from v1's discrete-token architecture, the 48 kHz and 30-second output envelope, the isolated Python 3.12 environment, exact inference parameters, fine-tuning inputs and Apache-2.0 licensing. It also notes the missing benchmark data and the first-run compilation delay that the official README calls out.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
What is MOSS-SoundEffect-v2.0?
MOSS-SoundEffect-v2.0 is an open-source text-to-audio model from MOSI.AI and OpenMOSS that generates non-speech sound effects from natural-language prompts. It uses a 1.3B Diffusion Transformer trained with the Flow Matching objective, paired with a DAC VAE and a Qwen3 text encoder. The model card lists Apache-2.0 licensing.
It is the dedicated sound member of the MOSS-TTS family, covering ambience, urban scenes, creatures, human actions and short musical or percussive clips. The 26 May 2026 release note in the family README describes bilingual English and Chinese training.
What changed from MOSS-SoundEffect v1?
Version 2.0 replaces v1's discrete-token autoregressive backbone with continuous-latent diffusion. The older model used the MossTTSDelay architecture shared with the rest of the MOSS-TTS family. The new one targets higher audio fidelity and more natural long-form environmental sound. The two are not interchangeable inside one Python environment.
| Aspect | v1 | v2.0 |
|---|---|---|
| Backbone | MossTTSDelay, discrete tokens | DiT with Flow Matching |
| Training objective | Autoregressive token prediction | Continuous-latent flow matching |
| Audio components | Family audio tokenizer | DAC VAE plus Qwen3 encoder |
| Stated goal | General sound effects | Higher fidelity, natural long-form sound |
The change is architectural, not just a weight update, and the two live in different directories with different environments. They are not interchangeable inside one Python setup.
What audio can it generate and for how long?
MOSS-SoundEffect-v2.0 generates up to 30 seconds of audio per call at 48 kHz. Duration is controllable, and the training setup prepends a duration tag to prompts. The default in the inference example is 10 seconds, and the pipeline saves the result as a standard WAV file.
Prompts are plain language: a mechanical keyboard, a dog barking in a park or water pouring into a glass. English and Chinese captions were both used in training, so either works. The pipeline returns a waveform tensor and saves it as a standard WAV file through its helper.
How do you install the isolated environment?
Version 2.0 needs its own Python 3.12 environment with pinned numpy==1.26, transformers==4.57 and torch==2.9. It is explicitly not compatible with the top-level MOSS-TTS environment. The official README recommends a clean Conda environment before cloning the repository; skipping that isolation causes dependency errors.
- Run
conda create -n moss-soundeffect-v2 python=3.12 -yand activate it. - Clone the MOSS-TTS repository and change into
MOSS-TTS/moss_soundeffect_v2. - Install with the CUDA wheel index, using
.[torch-cu128,finetune]for full access or.[torch-cu128]for inference only.
The inference-only install still ships the Gradio demo but skips accelerate, peft, pandas and torchcodec. Skipping that isolation is the most common source of dependency errors.
What is the basic inference code?
The official example loads OpenMOSS-Team/MOSS-SoundEffect-v2.0 through MossSoundEffectPipeline, then passes a prompt, a duration, a step count and a guidance scale. The model runs in bfloat16 on CUDA. Weights cache on first use, and the shell script accepts a hub ID or local directory.
import torch
from moss_soundeffect_v2 import MossSoundEffectPipeline
pipe = MossSoundEffectPipeline.from_pretrained(
"OpenMOSS-Team/MOSS-SoundEffect-v2.0",
torch_dtype=torch.bfloat16,
device="cuda",
)
audio = pipe(
prompt="A dog barking loudly in a park.",
seconds=10,
num_inference_steps=100,
cfg_scale=4.0,
)
pipe.save_audio(audio, "out.wav")
Weights download automatically into the Hugging Face cache on first use, and the bundled shell script accepts either a hub ID or a local directory. The DiT is wrapped with torch.compile and a Triton CUDA Graph. The first call can take several minutes to compile. If compilation fails, set TORCHDYNAMO_DISABLE=1 before launching Python.
What settings and fine-tuning options exist?
The defaults are 100 inference steps, CFG scale 4.0, sigma shift 5.0 and 10 seconds. Full-parameter DiT fine-tuning is supported from an existing Hugging Face directory. Metadata is a JSON Lines file with an audio path and an English or Chinese prompt per line.
| Parameter | Default | Role |
|---|---|---|
num_inference_steps |
100 | Flow-matching solver steps |
cfg_scale |
4.0 | Classifier-free guidance |
sigma_shift |
5.0 | Scheduler shift |
seconds |
10.0 | Output duration, up to 30 |
Training auto-exports the latest checkpoint to hf_format/. A separate export script converts any .safetensors checkpoint without re-downloading Qwen3 or the DAC VAE.
What are the limits of MOSS-SoundEffect-v2.0?
The documented limits are environmental setup friction, first-call compilation and absent benchmark numbers. The model card does not publish a quality score, and there is no independent evaluation listed. There is also no claim of music composition: short musical clips are within scope, full songs are not.
Hardware assumptions are CUDA-centric, with a pinned PyTorch wheel. Apple or CPU-only deployment is not described for v2.0; the pure-CPU path in the family belongs to MOSS-TTS-Nano, covered in this guide. Check the root license terms before redistribution, since the card states the repository follows its top-level LICENSE file.
Frequently asked questions about MOSS-SoundEffect-v2.0
These questions address the setup decisions that matter most: whether v2.0 shares the MOSS-TTS environment, whether your own recordings can be used for fine-tuning, what sample rate the files have, and whether the model speaks words. Each answer comes from the official README or model card.
Is v2.0 compatible with the MOSS-TTS environment?
No. It uses a separate Python 3.12 environment with pinned dependency versions.
Can I fine-tune it on my own sounds?
Yes. Provide a JSON Lines metadata file with audio paths and English or Chinese captions, then run the bundled fine-tuning script.
What sample rate is the output?
48 kHz, with controllable duration up to 30 seconds.
Does it generate speech?
No. It is the sound-effects member of the family; speech belongs to MOSS-TTS models.
Is MOSS-SoundEffect-v2.0 worth using?
MOSS-SoundEffect-v2.0 is a capable open text-to-audio model with a clean 1.3B DiT and Flow Matching design, bilingual prompts and a 30-second ceiling at 48 kHz. Its weak points are operational: pinned dependencies, a separate environment, compile-on-first-run and no published benchmarks. Follow the documented setup closely and validate output quality on your own prompts.