Run this model with HF Jobs
Run laion/timestamped-audio-captioning on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/laion/timestamped-audio-captioning. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/laion/timestamped-audio-captioning on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use laion/timestamped-audio-captioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use laion/timestamped-audio-captioning with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("laion/timestamped-audio-captioning", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- LAION Timestamped Audio Captioning (
laion/timestamped-audio-captioning)- Key Highlights
- Output Format
- Quickstart
- Evaluation Results
- 1. Out-of-Domain Dense Audio Captioning (
TACOS-2k, 2,000 Clips · 7,709 Human Events) - 2. Zero-Shot Open-Vocab Sound Event Detection (
DESED·URBAN-SED·AudioSet-Strong) - 3. Open-Vocabulary Temporal Audio Grounding (
TAG998 Queries ·SpotSound-Bench400 60s Queries) - 4. In-Domain Frozen 5,000-Clip Holistic Benchmark (
Bench-5k)
- 1. Out-of-Domain Dense Audio Captioning (
- Model Architecture & Training Summary
- Limitations & Roadmap
- License & Acknowledgements
- Citation
- Key Highlights
LAION Timestamped Audio Captioning (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).
Key Highlights
- Unified Full-Scene Pipeline by Default: Out of the box, the bundled
transformerspipeline 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. Passinclude_asr=Falseanytime to opt out and run the 9.05B audio event model standalone. - Sub-Second Temporal Precision:
0.15 smedian onset error (0.69 sboundary MAE zero-shot on TACOS-2k,0.52 sonset MAE on AudioSet-Strong and URBAN-SED). - Polyphonic Multi-Layer Timelines: Simultaneously tracks overlapping sound effects, background/foreground music passages, and per-speaker voice delivery descriptions (
gender,age,tone,emotion,cadence) from raw12.5 Hzaudio without stem separation. - Arbitrary-Length Audio Support: Built-in silence-aware
~30 schunking and temporal-IoU event stitching handles everything from 2-second clips to 30+ minute recordings in a single pass. - Fast Inference Ready: Supports
bfloat16+FlashAttention-2by default intransformers(trust_remote_code=True), plusvLLMandSGLangserving at up to587×realtime on 4× GH200 GPUs.
Output Format
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).
Quickstart
1. Default Unified Pipeline: ASR + Speaker Diarization + Timestamped Events (One Call)
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']}")
2. Opt-Out (Acoustic Events Only) or Bring Your Own ASR Turns
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)
3. Direct AutoModelForCausalLM + AutoProcessor Usage
import 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)
4. High-Throughput Serving (SGLang / vLLM) with Unified ASR + Events
For 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)
Evaluation Results
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.
1. Out-of-Domain Dense Audio Captioning (TACOS-2k, 2,000 Clips · 7,709 Human Events)
| Model | Regime | Std On1 F1 | Ev FENSE | TEMPO eF1@0.5 | 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% | — | — | — |
2. Zero-Shot Open-Vocab Sound Event Detection (DESED · URBAN-SED · AudioSet-Strong)
| Model | DESED On1 F1 | DESED Seg@0.5 | DESED Onset MAE↓ | URBAN-SED On1 F1 | URBAN-SED Seg@0.5 | AudioSet-Strong On1 F1 | AudioSet-Strong Seg@0.5 |
|---|---|---|---|---|---|---|---|
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% |
3. Open-Vocabulary Temporal Audio Grounding (TAG 998 Queries · SpotSound-Bench 400 60s Queries)
| Model | TAG R@1@0.3 | TAG R@1@0.5 | TAG mIoU | SpotSound R@1@0.3 | SpotSound R@1@0.5 | 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 |
4. In-Domain Frozen 5,000-Clip Holistic Benchmark (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 |
Model Architecture & Training Summary
- Architecture:
MossAudioModel(9.05Btotal parameters, BF16) combining the12.5 HzMOSS-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. - Training Pipeline (v1 → v3 Round 2):
- Full-Parameter Holistic SFT: Unfroze both the audio encoder and LLM backbone on large-scale multi-layer soundscape annotations (
voice(S*),sfx,music) with explicitNONEsilence calibration (12.5%dry-speech / silence examples) to suppress hallucinated background sounds. - Clean Cooldown + Calibrated DPO Soup: Followed by a curated high-precision cooldown stage and audit-verified Direct Preference Optimization (50/50 weight soup) to tighten music boundaries and eliminate hallucinated music.
- Two-Round On-Policy Waveform-Steered LoRA (
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.
- Full-Parameter Holistic SFT: Unfroze both the audio encoder and LLM backbone on large-scale multi-layer soundscape annotations (
Limitations & Roadmap
Current Limitations
- Two-Stage ASR + Events in the Default Pipeline: The default pipeline (
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. - Language Coverage: Event and voice delivery captions are trained primarily in English.
- Chunked Long-Form Stitching: Recordings longer than
30 sare processed via silence-aware~30 swindows stitched by temporal IoU rather than a single continuous KV cache across hours. - Custom Modeling Code: Requires
trust_remote_code=TrueintransformersuntilMossAudioModellands upstream (natively supported invLLM >= 0.24.0andOpenMOSS/sglang).
Roadmap
- Unified Native ASR + Events Checkpoint (
v4): Single end-to-end model emitting verbatim multi-speaker ASR transcripts alongside voice delivery, SFX, and music with zero external ASR dependency. - Distilled Real-Time Streaming Model: Distilling this 9B teacher into a compact, causal streaming architecture capable of live, low-latency polyphonic ASR + overlapping sound event prediction on continuous audio streams.
License & Acknowledgements
- License: Apache-2.0 (matching the upstream
OpenMOSS-Team/MOSS-Audio-8B-Thinkinglicense). - Acknowledgements: Built on top of MOSS-Audio by the OpenMOSS Team and Shanghai Innovation Institute. Trained and evaluated on the JUPITER supercomputer (Jülich Supercomputing Centre) as part of open multimodal audio research at LAION.
Citation
@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}
}
- Downloads last month
- 145
Model tree for laion/timestamped-audio-captioning
Base model
OpenMOSS-Team/MOSS-Audio-8B-Thinking