Text-to-Audio
Diffusers
Safetensors
English
Chinese
MossSoundEffectPipeline
diffusion
flow-matching
sound-effects
audio-generation
Instructions to use OpenMOSS-Team/MOSS-SoundEffect-v2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OpenMOSS-Team/MOSS-SoundEffect-v2.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OpenMOSS-Team/MOSS-SoundEffect-v2.0", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -28,7 +28,7 @@ tags:
|
|
| 28 |
<a href="https://github.com/OpenMOSS/MOSS-TTS/tree/main/moss_soundeffect_v2"><img src="https://img.shields.io/badge/Project%20Page-GitHub-blue"></a>
|
| 29 |
</div>
|
| 30 |
|
| 31 |
-
**MOSS-SoundEffect v2.0** is a text-to-audio model with a
|
| 32 |
|
| 33 |
## 1. Overview
|
| 34 |
|
|
@@ -87,7 +87,7 @@ import torch
|
|
| 87 |
from moss_soundeffect_v2 import MossSoundEffectPipeline
|
| 88 |
|
| 89 |
pipe = MossSoundEffectPipeline.from_pretrained(
|
| 90 |
-
"OpenMOSS-Team/MOSS-SoundEffect-v2",
|
| 91 |
torch_dtype=torch.bfloat16,
|
| 92 |
device="cuda",
|
| 93 |
)
|
|
|
|
| 28 |
<a href="https://github.com/OpenMOSS/MOSS-TTS/tree/main/moss_soundeffect_v2"><img src="https://img.shields.io/badge/Project%20Page-GitHub-blue"></a>
|
| 29 |
</div>
|
| 30 |
|
| 31 |
+
**MOSS-SoundEffect v2.0** is a text-to-audio model with a Diffusion Transformer (DiT) backbone trained with the Flow Matching objective, paired with a DAC VAE and a Qwen3 text encoder. It generates high-fidelity environmental, urban, creature, and human-action sound effects from natural-language prompts, with controllable duration up to 30 seconds at 48 kHz.
|
| 32 |
|
| 33 |
## 1. Overview
|
| 34 |
|
|
|
|
| 87 |
from moss_soundeffect_v2 import MossSoundEffectPipeline
|
| 88 |
|
| 89 |
pipe = MossSoundEffectPipeline.from_pretrained(
|
| 90 |
+
"OpenMOSS-Team/MOSS-SoundEffect-v2.0", # this repo, or a local dir
|
| 91 |
torch_dtype=torch.bfloat16,
|
| 92 |
device="cuda",
|
| 93 |
)
|