Skip to content

fix(transcription): say unmatched speakers got new numbers after a transcript in parts - #551

Merged
chhoumann merged 2 commits into
masterfrom
fix/split-speaker-warning
Nov 20, 2026
Merged

chhoumann merged 2 commits into
masterfrom
fix/split-speaker-warning

Conversation

@chhoumann

@chhoumann chhoumann commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Summary

PodNotes 2.25.0 shows a wrong warning after it transcribes an episode in parts. The warning says speaker labels restart in each part, but they don't. cuesOf numbers speakers across the whole episode, and a voice the speaker reel did not match to an earlier part gets the next unused number. One person can be 1 in part one and 3 in part two.

The warning now says what happens:

OpenRouter transcribed this episode in 3 parts. Speakers not matched across parts got new numbers, so one person can have more than one.

It shows in the same cases as before. Those are MAI-Transcribe 2, ElevenLabs Scribe v2 on uploads, and Grok STT 2.0 when the reel cannot match every voice.

Docs are held for the release. docs/STYLE.md says docs describe only the latest published release, and behavior that exists only on master waits for it. transcripts.md ("Long episodes on OpenRouter") quotes the old text, which is still what 2.25.0 shows. That quote changes after 2.25.1 ships. The rest of the docs already describe the numbering correctly. This PR does update the verify recipe in .claude/skills/verify/features/transcripts.md, because that recipe describes the code on master.

Bundle budget. The longer sentence costs 14 raw bytes and 6 gzip bytes. Shorter wordings that fit the old gzip budget dropped "across parts", or were still 1 to 2 bytes over. The budget rises to the exact new size in scripts/size.mjs, scripts/size.test.ts, AGENTS.md and scripts/size-baseline.md, the same way earlier PRs raised it.

Verification

Tested in Obsidian 1.14.4 on Linux (headless, isolated worktree instance), using the verify skill's fixture OpenRouter. No real API key was used.

  • Setup: Fixtures/Two Voices.mp3, a 70-minute 8 kbps MP3 made with the recipe's ffmpeg command.
  • Settings: provider OpenRouter, model MAI-Transcribe 2, Speaker labels on.
  • Steps: play the file from the file explorer's Play with PodNotes, then run Transcribe current episode from audio from the palette.
  • Result: net.mjs log showed 3 transcription POSTs, and the note numbered the speakers 1 to 6.
Before (2.25.0) After
before after

Before: OpenRouter transcribed this episode in 3 parts, and speaker labels restart in each, so one person can have several labels.
After: OpenRouter transcribed this episode in 3 parts. Speakers not matched across parts got new numbers, so one person can have more than one.
dev:errors: No errors captured. in both runs.

Plant. npm run plant restored the old text in transcribe.ts. The test microsoft/mai-transcribe-2 sends no reel: labels from two parts never name the same speaker, and the notice says unmatched speakers got new numbers failed with Received: "OpenRouter transcribed this episode in 2 parts, and speaker labels restart in each, so one person can have several labels." and passed once the file was restored. Three more tests assert the same UNMATCHED constant.

Commands, run on Node 22.23.2, all passed:

  • npm run lint
  • npm run format:check
  • npm run typecheck
  • npm run build
  • npm run size: 334,105 raw and 109,240 gzip, 0 bytes remaining.
  • npm run test: 125 files, 2,991 tests.
  • npm run test:tooling: 9 files, 56 tests.

npm run docs:build was not run because no docs changed.

Release impact

None. Only the warning text changes. Settings, storage, API and URIs are unchanged.


Note

Low Risk
User-facing copy and bundle budget only; no change to transcription logic, settings, or persistence.

Overview
Fixes the progress notice shown after a multi-part transcription when speaker labels stay on but some voices could not be matched across parts (e.g. OpenRouter Grok with a failed reel, or Scribe v2 / MAI-Transcribe with no reel). The old wording claimed labels restart in each part; behavior actually reuses numbers when the reel matches and only assigns new numbers to unmatched speakers.

The warning in transcribe.ts now reads: "<provider> transcribed this episode in N parts. Speakers not matched across parts got new numbers, so one person can have more than one." Unit expectations use the new UNMATCHED string, and the verify skill’s OpenRouter In parts recipe quotes the same notice.

The longer copy adds 14 raw / 6 gzip bytes to main.js; scripts/size.mjs, tests, AGENTS.md, and scripts/size-baseline.md bump budgets to 334,105 / 109,240.

Reviewed by Cursor Bugbot for commit 60446b8. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix multipart transcription warning to say unmatched speakers got new numbers

Changes the warning text in transcribe in transcribe.ts. When speaker labels are on, transcription has multiple parts, and a label is not matched by the speaker reel, the warning now says those speakers got new numbers and one person can have more than one number. The old text said speaker labels restart in each part.

  • Updates expected warnings in TranscriptionService.test.ts for multipart cases (short turns, clips without recognized words, reel refusals, models with no speaker reel)
  • Updates the verification docs in transcripts.md
  • Raises bundle-size budgets from 334,091 to 334,105 raw bytes and 109,234 to 109,240 gzip bytes in size.mjs, with matching updates to size.test.ts and size-baseline.md
  • Behavioral Change: users see new warning wording for multipart transcriptions with unmatched speakers

Macroscope summarized 60446b8.

…ched speakers got new numbers

Speaker numbers continue across an episode's parts. A voice the speaker reel
did not match to an earlier part gets the next unused number. The warning
said labels restart in each part, which they do not.
…anscript in parts

The warning after a transcript in parts said speaker labels restart in each
part. They do not: cuesOf numbers speakers across the whole episode, and a
voice not matched to an earlier part gets the next unused number. The
warning now says that.

The 14 raw and 6 gzip bytes the longer sentence measures raise both
bundle budgets.
@chhoumann
chhoumann marked this pull request as draft November 20, 2026 21:27
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying podnotes with  Cloudflare Pages  Cloudflare Pages

Latest commit: 60446b8
Status: ✅  Deploy successful!
Preview URL: https://be375491.podnotes.pages.dev
Branch Preview URL: https://fix-split-speaker-warning.podnotes.pages.dev

View logs

@chhoumann

Copy link
Copy Markdown
Owner Author

PASS

Independently verified head 60446b8512f9e80aad906b393c52e94cecf9d4b3 against parent 9ef18342. The new warning accurately describes the saved speaker numbering. No em dash appears in the new text.

Linux headless, Obsidian 1.14.4 (installer 1.14.4), isolated vault podnotes-54d015b3-76321b3dede98ac2. Used only the fake OpenRouter key and net.mjs fixture provider, model microsoft/mai-transcribe-2, Speaker labels on. The fixture returns the same two speakers per part for this model; this checks numbering and wording, not live-provider voice recognition.

Both builds were tested through the file explorer's Play with PodNotes menu and the command palette's Transcribe current episode from audio. Rebuilt each commit and explicitly reloaded with --reload.

Before:

OpenRouter transcribed this episode in 3 parts, and speaker labels restart in each, so one person can have several labels.

After:

OpenRouter transcribed this episode in 3 parts. Speakers not matched across parts got new numbers, so one person can have more than one.

Both progress notices were headed Transcription: Two Voices (00:00:00):. Both saved notes contained speakers 1, 2, 3, 4, 5, 6, at 00:00:00, 00:00:12, 00:23:20, 00:23:32, 00:46:40, and 00:46:52. The notes were byte-for-byte identical. Each net.mjs log showed exactly three transcription POSTs, all answered by the fixture provider, plus one model-catalog GET. Each dev:errors returned No errors captured.

Captured and opened both screenshots. The full warnings and all six speaker numbers are visible. Evidence is saved locally under .obsidian-e2e-artifacts/pr551/, including parent.png, head.png, notes, network logs, error logs, and check output.

Fixture creation, with VAULT set to this worktree's isolated vault:

ffmpeg -f lavfi -i "aevalsrc='0.5*sin(2*PI*if(lt(mod(t\,90)\,45)\,300\,700)*t)':s=8000:d=4200" -ac 1 -ar 8000 -b:a 8k "$VAULT/Fixtures/Two Voices.mp3"

User-path commands, repeated for both builds:

node .claude/skills/verify/net.mjs watch
node .claude/skills/verify/ui.mjs click '.nav-file-title[data-path="Fixtures/Two Voices.mp3"]' --right
node .claude/skills/verify/ui.mjs click '.menu .menu-item' --text 'Play with PodNotes'
node .claude/skills/verify/ui.mjs key Ctrl+p
node .claude/skills/verify/ui.mjs type .prompt-input 'Transcribe current episode from audio'
node .claude/skills/verify/ui.mjs click .suggestion-item --text 'Transcribe current episode from audio'
node .claude/skills/verify/net.mjs log

Every npm invocation used fnm exec --using 22.23.2 npm run .... This host resolves that selector to Node v22.23.4, confirmed with process.version.

All requested checks passed on head:

  • npm run lint
  • npm run format:check
  • npm run typecheck
  • npm run build
  • npm run size: 334,105 raw bytes and 109,240 gzip bytes at level 9, both exactly at budget. Parent measured 334,091 and 109,234, confirming increases of 14 and 6 bytes.
  • npm run test: both Svelte checks clean; 125 files and 2,991 tests passed.
  • npm run test:tooling: 9 files and 56 tests passed.

Reviewed all seven changed files and searched for the old wording. Runtime behavior changes only in the warning string. The budget, its tests, AGENTS.md, baseline record, and verification recipe agree. The old quotation remaining in docs/src/content/docs/transcripts.md is intentional under docs/STYLE.md's published-release rule.

Cleanup passed with npm run stop:e2e-obsidian and node .claude/skills/verify/fixtures.mjs stop. npm run stop:e2e-obsidian -- --dry-run reported pids: none. No commits, pushes, or tracked-file edits were made.

@chhoumann
chhoumann marked this pull request as ready for review November 20, 2026 23:36
@chhoumann
chhoumann merged commit f1d331f into master Nov 20, 2026
20 checks passed
@chhoumann
chhoumann deleted the fix/split-speaker-warning branch November 20, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant