Dasheng-AudioGen-Multilingual
is the multilingual variant of Dasheng-AudioGen, a unified audio generation model that can jointly synthesize
intelligible speech, music, sound effects, and environmental acoustics
from text descriptions.
Note:
The current multilingual model has notably higher synthesis error rates for all non-English languages. Languages outside the table above are even less reliable. For English-only use cases, the base model (
mispeech/Dasheng-AudioGen
) is recommended.
Tested with Python 3.10, torch 2.8.0+cu128, transformers 4.57. Not compatible with transformers 5.x.
Quick Start
Basic Usage
import torchaudio
from transformers import AutoModel
model = AutoModel.from_pretrained("mispeech/Dasheng-AudioGen-Multilingual", trust_remote_code=True).cuda()
audio = model.generate("A dog barking in a park")
torchaudio.save("output.wav", audio.cpu(), 16000)
Aspect-wise Prompt
Use
compose_prompt
to describe different audio aspects separately:
prompt = model.compose_prompt(
caption="A conversation scene on a busy city street.",
speech="A young woman speaking softly in Spanish.",
env="Rain and distant traffic noise.",
asr="Creo que deberíamos irnos ya.",
)
audio = model.generate(prompt)
torchaudio.save("output.wav", audio.cpu(), 16000)
You can also pass a pre-formatted string with tags directly:
audio = model.generate(
"<|caption|> A helicopter passing overhead. <|sfx|> Rhythmic helicopter blade sounds. <|env|> Open sky ambience."
)
Batch Inference
prompts = [
model.compose_prompt(caption="A cat meowing softly.", sfx="Soft cat meow."),
model.compose_prompt(caption="Thunder rolling in the distance.", env="Stormy night ambience."),
model.compose_prompt(caption="A piano playing a gentle melody.", music="Soft piano ballad."),
]
audios = model.generate(prompts)
for i, audio inenumerate(audios):
torchaudio.save(f"output_{i}.wav", audio.unsqueeze(0).cpu(), 16000)
Generation Parameters
audio = model.generate(
prompts="A dog barking in a park",
num_steps=25, # number of denoising steps (default: 25)
guidance_scale=5.0, # classifier-free guidance scale (default: 5.0)
sway_sampling_coef=-1.0, # sway sampling coefficient (default: -1.0, 0 for linear)
)
Prompt Format
Dasheng-AudioGen uses structured tags to describe different audio aspects:
Tag
Description
<|caption|>
Overall audio scene description
<|speech|>
Speaker identity and speaking style
<|asr|>
Spoken transcript / dialogue
<|sfx|>
Sound effects
<|music|>
Background music
<|env|>
Environmental ambience
Multilingual prompt convention:
All descriptive tags (
caption
,
speech
,
sfx
,
music
,
env
) should be written in
English
. Only the
<|asr|>
field (the actual spoken content to be synthesized) should use the target language.
Acknowledgments
Dasheng-AudioGen was developed with contributions from
XIAOMI LLM PLUS
and
SJTU X-LANCE
.
Dasheng-AudioGen-Multilingual huggingface.co is an AI model on huggingface.co that provides Dasheng-AudioGen-Multilingual's model effect (), which can be used instantly with this mispeech Dasheng-AudioGen-Multilingual model. huggingface.co supports a free trial of the Dasheng-AudioGen-Multilingual model, and also provides paid use of the Dasheng-AudioGen-Multilingual. Support call Dasheng-AudioGen-Multilingual model through api, including Node.js, Python, http.
Dasheng-AudioGen-Multilingual huggingface.co is an online trial and call api platform, which integrates Dasheng-AudioGen-Multilingual's modeling effects, including api services, and provides a free online trial of Dasheng-AudioGen-Multilingual, you can try Dasheng-AudioGen-Multilingual online for free by clicking the link below.
mispeech Dasheng-AudioGen-Multilingual online free url in huggingface.co:
Dasheng-AudioGen-Multilingual is an open source model from GitHub that offers a free installation service, and any user can find Dasheng-AudioGen-Multilingual on GitHub to install. At the same time, huggingface.co provides the effect of Dasheng-AudioGen-Multilingual install, users can directly use Dasheng-AudioGen-Multilingual installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Dasheng-AudioGen-Multilingual install url in huggingface.co: