laion/timestamped-audio-captioning)Press play (with audio) to hear a dense 28.5 s polyphonic action scene (14 overlapping events stacked across 5 concurrent layers — orchestral music, heavy machinery rumble, metallic crashes, monstrous roar, booming explosions, two speakers shouting dialogue, fiery roar, and scream) synchronized live with zero-shot predictions from laion/timestamped-audio-captioning.
laion/timestamped-audio-captioning is a 9.05B-parameter open-weight, Apache-2.0 model and unified Hugging Face pipeline for dense, polyphonic, timestamped audio understanding. Given raw audio of any length, the default pipeline produces a single chronological timeline combining verbatim multi-speaker ASR + speaker diarization (S1, S2, ...), speaker voice delivery (voice(S1), ...), sound effects (sfx), and music (music) with 0.01 s timestamp precision.
Built by fine-tuning and waveform-steering OpenMOSS-Team/MOSS-Audio-8B-Thinking on large-scale holistic soundscape annotations, this checkpoint achieves open-weight zero-shot state of the art on temporal audio grounding (SpotSound-Bench, TAG), zero-shot open-vocabulary sound event detection (DESED, URBAN-SED, AudioSet-Strong), and TACOS-2k semantic-gated event detection — outperforming 30B–35B multimodal models (Qwen3-Omni-30B, LongCap-35B) and dedicated framewise grounding encoders (OpenFLAM).
transformers pipeline runs ASR + speaker diarization together with our 9.05B timestamped soundscape model so every clip gets one aligned JSON/text timeline of spoken transcripts, speaker IDs, voice delivery, SFX, and music. Pass include_asr=False anytime to opt out and run the 9.05B audio event model standalone.0.15 s median onset error (0.69 s boundary MAE zero-shot on TACOS-2k, 0.52 s onset MAE on AudioSet-Strong and URBAN-SED).gender, age, tone, emotion, cadence) from raw 12.5 Hz audio without stem separation.~30 s chunking and temporal-IoU event stitching handles everything from 2-second clips to 30+ minute recordings in a single pass.bfloat16 + FlashAttention-2 by default in transformers (trust_remote_code=True), plus vLLM and SGLang serving at up to 587× realtime on 4× GH200 GPUs.The default unified pipeline returns a chronological list of overlapping speech (with speaker ID, transcript, and voice delivery), sfx, and music events in seconds to two decimal places:
[0.00-14.80] music | Soft acoustic guitar fingerpicking plays a warm, steady folk progression.
[1.25-6.40] speech(S1) | "Did you hear that outside?" (An adult, feminine-sounding voice speaks calmly and warmly at a moderate pace.)
[4.10-4.85] sfx | A ceramic coffee mug clinks softly as it is set down on a wooden table.
[7.05-9.60] sfx | Light footsteps cross a creaky hardwood floor from close range.
[10.20-13.90] speech(S2)| "Just the wind knocking the gate." (A young adult, masculine-sounding voice chuckles lightly in a cheerful tone.)
When opting out of ASR (include_asr=False), the raw model output uses [start]category: caption[end] (voice(S1), sfx, music, or NONE if silent).
pip install -U "transformers>=4.51" torch torchaudio soundfile accelerate
# Optional (recommended on Ampere/Hopper/Blackwell GPUs for fastest attention):
pip install flash-attn --no-build-isolation
import torch
from transformers import pipeline
captioner = pipeline(
task="timestamped-audio-captioning",
model="laion/timestamped-audio-captioning",
trust_remote_code=True,
torch_dtype=torch.bfloat16,
device="cuda",
model_kwargs={"attn_implementation": "flash_attention_2"},
)
# Unified mode is ON by default: runs ASR + speaker diarization + dense timestamped events
# Automatically chunks long recordings around ~30s silence boundaries and stitches events
result = captioner("example_scene.wav")
for ev in result["events"]:
spk = f" ({ev['speaker_id']})" if ev.get("speaker_id") else ""
tr = f" \"{ev['transcript']}\"" if ev.get("transcript") else ""
print(f"[{ev['start_time']:6.2f}s - {ev['end_time']:6.2f}s] {ev['category']}{spk}:{tr} {ev['caption']}")
If you want maximum speed without loading the ASR + diarization stage, simply opt out with include_asr=False — or pass your own pre-computed speech_turns to condition speaker IDs (S1, S2, ...):
# Opt out of ASR + diarization (standalone 9.05B soundscape + voice delivery model only)
events_only = captioner("example_scene.wav", include_asr=False)
# Or supply custom pre-computed ASR + diarization turns (skips internal ASR stage)
custom_turns = [
{"start": 1.25, "end": 6.40, "speaker": "S1", "text": "Did you hear that outside?"},
{"start": 10.20, "end": 13.90, "speaker": "S2", "text": "Just the wind knocking the gate."},
]
custom_result = captioner("example_scene.wav", speech_turns=custom_turns)
AutoModelForCausalLM + AutoProcessor Usageimport soundfile as sf
import torch
from transformers import AutoModelForCausalLM, AutoProcessor
model_id = "laion/timestamped-audio-captioning"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
torch_dtype=torch.bfloat16,
attn_implementation="flash_attention_2",
device_map="auto",
).eval()
wav, sr = sf.read("example_clip.wav", dtype="float32")
if wav.ndim > 1:
wav = wav.mean(axis=1)
dur = len(wav) / sr
prompt = (
f"Audio duration: {dur:.2f}s.\n"
"Speech:\n(not provided)\n"
"Annotate all speaker voice/delivery descriptions (voice(S1), voice(S2), ...), "
"non-speech sound effects (sfx), and music (music) chronologically using "
"[start]category: caption[end] (seconds to 2 decimals), one per line sorted by start time. "
"Output NONE if the clip is silent."
)
inputs = processor(text=prompt, audio=wav, sampling_rate=sr, return_tensors="pt").to(model.device)
with torch.inference_mode():
out_ids = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
decoded = processor.batch_decode(out_ids[:, inputs["input_ids"].shape[1]:], skip_special_tokens=True)[0]
timeline = decoded.split("</think>", 1)[-1].strip()
print(timeline)
SGLang / vLLM) with Unified ASR + EventsFor batch dataset annotation or production serving (up to 587× realtime on 4× GH200 GPUs with continuous batching and CUDA graphs), launch the 9.05B audio model behind SGLang or vLLM and point the unified pipeline at its endpoint — ASR + speaker diarization stays enabled by default, with the exact same include_asr=False opt-out:
# Option A: SGLang (OpenMOSS moss-audio branch)
python -m sglang.launch_server \
--model-path laion/timestamped-audio-captioning \
--trust-remote-code \
--dtype bfloat16 \
--context-length 8192 \
--port 30000
# Option B: vLLM (>= 0.24.0 native MossAudioModel support)
vllm serve laion/timestamped-audio-captioning \
--dtype bfloat16 \
--max-model-len 8192 \
--limit-mm-per-prompt '{"audio": 1}' \
--port 30000
from transformers import pipeline
# Connects to your SGLang / vLLM server while keeping ASR + diarization + auto-chunking ON by default
captioner = pipeline(
task="timestamped-audio-captioning",
model="laion/timestamped-audio-captioning",
trust_remote_code=True,
endpoint="http://127.0.0.1:30000",
)
# Full unified timeline (ASR + speaker IDs + voice delivery + sfx + music) at server throughput
result = captioner("long_recording.wav")
# Opt out of ASR + diarization (events + voice delivery only)
events_only = captioner("long_recording.wav", include_asr=False)
All out-of-domain benchmarks below are strictly zero-shot (zero training clips from TACOS, DESED, URBAN-SED, AudioSet-Strong, TAG, or SpotSound-Bench). Every live competitor was evaluated on the exact same audio files, prompts, and scoring code on JUPITER.
TACOS-2k, 2,000 Clips · 7,709 Human Events)| Model | Regime | Std On1 F1 | Ev FENSE | TEMPO [email protected] | TAC EvtF1 | TAC 100ms SegF1 | Boundary MAE↓ |
|---|---|---|---|---|---|---|---|
laion/timestamped-audio-captioning (9B) |
Zero-Shot | 54.8% |
0.522 |
54.5% |
37.1% |
55.7% |
0.69 s |
Qwen3-Omni-30B-A3B-Instruct (30B · Live) |
Zero-Shot | 41.7% |
0.300 |
55.5% |
31.6% |
56.8% |
0.90 s |
LongCap-35B-A3B-FP8 (35B · Live) |
Zero-Shot | 41.0% |
0.514 |
56.2% |
30.2% |
54.2% |
1.02 s |
Qwen2.5-Omni-7B (7B · Live) |
Zero-Shot | 32.1% |
0.239 |
54.6% |
23.5% |
53.2% |
1.33 s |
NVIDIA Audio Flamingo Next (8B · Live) |
Zero-Shot | 34.3% |
0.459 |
30.0% |
23.1% |
25.6% |
0.88 s |
Zero-Shot MOSS-Audio-8B-Instruct (Base) |
Zero-Shot | 6.8% |
0.265 |
6.9% |
4.5% |
9.3% |
1.06 s |
Published reference: TAC Zero-Shot (2602.15766) |
Zero-Shot | — | — | — | 42.0% | 68.0% | — |
Published reference: Frontier Closed Model (2602.15766) |
Zero-Shot | — | — | — | 42.0% | 64.0% | — |
Published reference: TEMPO RL (EMNLP 2026) |
In-Domain | — | — | 59.3% | — | — | — |
DESED · URBAN-SED · AudioSet-Strong)| Model | DESED On1 F1 | DESED [email protected] | DESED Onset MAE↓ | URBAN-SED On1 F1 | URBAN-SED [email protected] | AudioSet-Strong On1 F1 | AudioSet-Strong [email protected] |
|---|---|---|---|---|---|---|---|
laion/timestamped-audio-captioning (9B) |
61.0% |
42.2% |
0.57 s |
66.5% |
52.0% |
47.2% |
31.9% |
LongCap-35B-A3B-FP8 (35B · Live) |
55.2% |
41.8% |
0.80 s |
49.3% |
40.5% |
37.3% |
28.7% |
NVIDIA Audio Flamingo Next (8B · Live) |
42.6% |
19.9% |
0.80 s |
44.7% |
15.2% |
42.6% |
18.3% |
Qwen3-Omni-30B-A3B-Instruct (30B · Live) |
40.0% |
26.9% |
0.87 s |
36.2% |
23.6% |
37.3% |
23.4% |
TEMPO-RL Multi-Task (8B · Live) |
26.3% |
16.6% |
2.45 s |
48.1% |
32.1% |
32.9% |
21.0% |
Qwen2.5-Omni-7B (7B · Live) |
17.4% |
23.0% |
2.15 s |
2.8% |
0.0% |
18.1% |
18.0% |
TAG 998 Queries · SpotSound-Bench 400 60s Queries)| Model | TAG R@[email protected] | TAG R@[email protected] | TAG mIoU | SpotSound R@[email protected] | SpotSound R@[email protected] | SpotSound mIoU | SpotSound MAE↓ |
|---|---|---|---|---|---|---|---|
laion/timestamped-audio-captioning (9B) |
58.4% |
46.3% |
46.8% |
64.8% |
59.2% |
52.6% |
4.85 s |
OpenFLAM (Adobe ICML 2025 · Framewise) |
57.9% |
39.5% |
42.7% |
55.5% |
39.8% |
40.4% |
5.70 s |
LongCap-35B-A3B-FP8 (35B · Live) |
59.2% |
45.7% |
47.7% |
48.2% |
39.0% |
36.8% |
7.88 s |
TEMPO-RL Multi-Task (8B · Live) |
58.0% |
43.6% |
47.2% |
21.5% |
16.0% |
17.8% |
20.87 s |
Qwen3-Omni-30B-A3B-Instruct (30B · Live) |
55.0% |
43.1% |
43.8% |
11.5% |
6.0% |
12.4% |
22.26 s |
Qwen2.5-Omni-7B (7B · Live) |
45.8% |
30.2% |
40.4% |
4.8% |
0.5% |
9.8% |
24.25 s |
NVIDIA Audio Flamingo Next (8B · Live) |
32.3% |
21.9% |
28.7% |
4.8% |
1.5% |
5.0% |
24.06 s |
Bench-5k)| Metric | Score (a0.55 Release) |
Notes |
|---|---|---|
| Overall Non-Speech Activity F1 | 92.7% |
SFX 89.8% · Music 83.2% |
| Onset ±0.5 s / ±1.0 s F1 | 57.9% / 65.9% |
Median onset error 0.15 s, median offset error 0.17 s |
Segment F1 (IoU ≥ 0.3 / 0.5) |
63.1% / 51.2% |
Mean matched IoU 63.8% |
| Matched Event FENSE / CIDEr / METEOR | 0.663 / 0.730 / 0.309 |
Fluency error rate 0.26%, caption uniqueness 87.9% |
| Voice Delivery Match F1 / FENSE | 99.8% / 0.877 |
Speaker-aligned delivery (gender, age, tone, emotion, cadence) |
| Speech-Only False Positive Rate / False Music | 15.9% / 3.2% |
0.925× pred/GT event calibration |
MossAudioModel (9.05B total parameters, BF16) combining the 12.5 Hz MOSS-Audio-Encoder (32-layer Transformer with DeepStack cross-layer injection at layers 8, 16, and 24 plus explicit time markers) and a Qwen3-8B language backbone.voice(S*), sfx, music) with explicit NONE silence calibration (12.5% dry-speech / silence examples) to suppress hallucinated background sounds.r=32, merged at α=0.55): Mined hard real-audio failure modes (subtle breathing false positives, short transient attacks, speech+music overlaps) using direct waveform audits and merged the resulting LoRA adapter cleanly back into the BF16 base weights for zero inference overhead.include_asr=True) pairs an automatic ASR + diarization stage with our 9.05B timestamped soundscape model. Opting out (include_asr=False) runs only the 9.05B checkpoint, which emits voice delivery descriptions (voice(S1): An adult masculine voice speaks calmly...) rather than verbatim spoken words.30 s are processed via silence-aware ~30 s windows stitched by temporal IoU rather than a single continuous KV cache across hours.trust_remote_code=True in transformers until MossAudioModel lands upstream (natively supported in vLLM >= 0.24.0 and OpenMOSS/sglang).v4): Single end-to-end model emitting verbatim multi-speaker ASR transcripts alongside voice delivery, SFX, and music with zero external ASR dependency.OpenMOSS-Team/MOSS-Audio-8B-Thinking license).@misc{laion2026timestampedaudiocaptioning,
title = {LAION Timestamped Audio Captioning: Dense Polyphonic Soundscape Localization and Description},
author = {{LAION} and Gijs Wijngaard and Christoph Schuhmann},
year = {2026},
url = {https://huggingface.co/laion/timestamped-audio-captioning}
}
If you build on the underlying architecture, please also cite the MOSS-Audio Technical Report:
@misc{yang2026mossaudiotechnicalreport,
title = {MOSS-Audio Technical Report},
author = {Chen Yang and Chufan Yu and Hanfu Chen and Jie Zhu and Jingqi Chen and Ke Chen and Wenxuan Wang and Yang Wang and Yaozhou Jiang and Yi Jiang and Zhengyuan Lin and Ziqi Chen and Zhaoye Fei and Chenghao Liu and Donghua Yu and Jun Zhan and Kang Yu and Kexin Huang and Liwei Fan and Mingshu Chen and Qinyuan Cheng and Ruixiao Li and Shimin Li and Songlin Wang and Xingjian Zhao and Yang Gao and Yitian Gong and Yiyang Zhang and Zhe Xu and Xipeng Qiu},
year = {2026},
url = {https://huggingface.co/OpenMOSS-Team/MOSS-Audio-8B-Thinking}
}
model-00002-of-00005.safetensors 4.2 GiBmodel-00001-of-00005.safetensors 4.2 GiBmodel-00003-of-00005.safetensors 4.1 GiBmodel-00004-of-00005.safetensors 3.2 GiBmodel-00005-of-00005.safetensors 1.2 GiB