SarvamSpeech benchmark assignment · independent work, not an official Sarvam page Archit Gupta · architgupta.tech · pinewoodarchit@gmail.com · github.com/testing-archit

Who spoke, and what did they say?

An error explorer for speaker-attributed ASR on 99 Indic YouTube windows. It shows where the errors come from, how label-free speaker re-clustering fixes the diarizer's over-segmentation, and which clips the pipeline itself can flag as untrustworthy. Pick any clip below to watch it with ground-truth, baseline and re-clustered speaker timelines in sync.

1 · Where does the error come from?

2 · Wrong script means wrong words

3 · Knowing when it's wrong, without labels

How it was done

1 · Audio100 YouTube windows fetched with yt-dlp, trimmed, 16 kHz mono. 99 usable (one video is gone from YouTube); 12.3 h in 9 Indic scripts.
2 · DiarizationTwo sherpa-onnx diarizers: pyannote segmentation-3.0 and Reverb v1, both clustering ERes2Net speaker embeddings.
3 · ASRTwo recognisers on every diarized turn (≤ 24 s spans): Whisper-tiny (whisper.cpp, q5) and Meta Omni-ASR CTC 300M. Plus one continuous decode per clip.
4 · ScoringDER, JER, speaker-count accuracy (collar 0, overlap scored, optimal speaker mapping), cpWER and WDER. All four diarizer × ASR pairs.
5 · EnhancementLabel-free speaker re-clustering on the best pair, tuned on dev and reported once on test.

Evaluation design: no peeking

Clips are split by video with a fixed hash into 20 dev and 79 test clips. Every choice (the best baseline pair, the re-clustering threshold, the features of the risk score) is made on dev. Test is scored once. Ground truth is never a pipeline input. It is used only to score and, in chart 1, to compute an oracle ceiling that is labelled as such. A reference audit found turns running past the clip end in 85 clips (clipped before scoring) and Latin glosses inside Marathi references, so a gloss-free cpWER is reported as a sensitivity check.

The enhancement: undo the diarizer's over-segmentation

Both diarizers split people into many speakers: on test, 843 predicted speakers against 270 real ones. For each predicted speaker, up to eight solo (non-overlapped) pieces of 1–6 s are embedded with the diarizer's own ERes2Net model. Speakers are merged by average-linkage cosine similarity above t, and speakers with under m seconds of speech are absorbed into their nearest large neighbour. Turns and already-decoded words are relabelled (no ASR rerun), and duplicate words from merged overlapping turns are removed. A 32-point grid picked t = 0.75, m = 30 s on dev. A different setting scored better on test, but switching to it would be test-set peeking, so the dev choice stays.

Test, 79 clips: Reverb v1 + Omni CTCDERJERCount acc.cpWERWDER
Baseline (turn-level decode)46.0%45.0%19.0%102.3%38.0%
+ re-clustering (t = 0.75, m = 30)27.9%47.9%36.7%85.7%22.4%

Other baselines on test (cpWER): pyannote + Omni 105.7%, Reverb + Whisper-tiny 145.2%, pyannote + Whisper-tiny 159.5%. Re-clustering improves DER on 55 of 78 test videos. The failure case: JER gets slightly worse because the minimum-duration rule folds genuinely minor speakers into dominant ones. The first clip in the table below, a Tamil clip whose three speakers collapse into one, shows this.

The three analyses above

  1. Error attribution. The continuous decode gives one set of words. Those words are attributed to (a) no speakers, (b) ground-truth turns, (c) predicted turns and (d) re-clustered turns, and each is scored. Because the words stay fixed, the differences between rows isolate the cost of diarization from the cost of ASR.
  2. Script confusion. Each hypothesis token is labelled with its Unicode script and compared with the reference script. To bound a cheap fix, Brahmic tokens were then shifted into the reference script's Unicode block (these blocks share a layout) and rescored.
  3. Label-free risk. Eleven signals the pipeline can compute about itself: agreement between the two diarizers, agreement between the two ASR systems, words per speech-second, merge ratio, cluster separation, overlap and others. Features with |Spearman ρ| ≥ 0.3 against per-clip cpWER on dev are kept, signed and rank-averaged. The score is tested on test, with a bootstrap over videos for the confidence interval.

Code runs on a laptop CPU (sherpa-onnx, whisper.cpp, PyTorch for Omni). The deliverables are a 2-page technical write-up, a benchmark workbook and an end-to-end Colab notebook.

Reference (speaker-coloured)

Enhanced system: Omni CTC + re-clustered speakers

Speaker colours: hypothesis speakers are mapped to their best-matching reference speaker (optimal assignment); grey speakers had no reference match. Click a timeline to seek.

ClipScriptSplitLength Speakers ref / base / re-cl.DER base → re-cl.cpWER base → re-cl. WDER base → re-cl.Risk