LongCap_ICLR
audio captioning and diarization for long recordings
2 min readupdated
A model suite and ready-to-use CLI tool from the longcap team for audio processing. The repository includes two separate checkpoints: LongCap for generating timestamped audio event descriptions and LongCap_Diar for diarization (separating speech by speaker) with simultaneous transcription. It supports long recordings via the long profile and batch processing of WAV and FLAC files. Built for voice service developers and audio data researchers.
Key features
- Two specialized checkpoints:
LongCapoutputs event descriptions with start and end timestamps in seconds, whileLongCap_Diarsplits recordings into segments with speaker labels and transcripts. - Batch processing and resume support: instead of a single audio file, you can pass a JSONL manifest with a list of recordings, and if a run is interrupted, re-running the command resumes from the last saved point.
- Client-server architecture: the model runs as a local server (including via Docker), while inference is triggered through separate CLI commands that output results to
.jsonl.
What you can do
- Annotate long audio recordings and podcasts: get timestamps for each speaker's turns along with speech transcripts using
LongCap_Diar. - Build a sound event dataset: run an archive of WAV or FLAC files through
LongCapusing a JSONL manifest to automatically generate event timestamps.
Example
longcap serve --model ../LongCap_Diar --profile long
longcap diarize --audio /path/to/recording.wav \
--model ../LongCap_Diar --frequency-penalty 0.05 \
--output outputs/diarization
Read more
DetailsHardware requirements: Linux x86-64, an FP8-capable GPU with high VRAM (the model card specifies an NVIDIA H100 80 GB), and a driver supporting CUDA 13.0.
Languages in metadata: English (en), Chinese (zh).
Installation: Python 3.12, a C/C++ compiler, with Docker execution supported (NVIDIA Container Toolkit,
--shm-size=16g).









Comments