Repository navigation
fix(transcription): say unmatched speakers got new numbers after a transcript in parts - #551
Conversation
…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.
Deploying podnotes with
|
| Latest commit: |
60446b8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://be375491.podnotes.pages.dev |
| Branch Preview URL: | https://fix-split-speaker-warning.podnotes.pages.dev |
|
PASS Independently verified head Linux headless, Obsidian 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 Before:
After:
Both progress notices were headed Captured and opened both screenshots. The full warnings and all six speaker numbers are visible. Evidence is saved locally under 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 logEvery npm invocation used All requested checks passed on head:
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 Cleanup passed with |
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.
cuesOfnumbers 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 be1in part one and3in part two.The warning now says what happens:
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.mdsays docs describe only the latest published release, and behavior that exists only onmasterwaits 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 onmaster.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 andscripts/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.
Fixtures/Two Voices.mp3, a 70-minute 8 kbps MP3 made with the recipe'sffmpegcommand.OpenRouter, modelMAI-Transcribe 2,Speaker labelson.net.mjs logshowed 3 transcription POSTs, and the note numbered the speakers1to6.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 plantrestored the old text intranscribe.ts. The testmicrosoft/mai-transcribe-2 sends no reel: labels from two parts never name the same speaker, and the notice says unmatched speakers got new numbersfailed withReceived: "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 sameUNMATCHEDconstant.Commands, run on Node 22.23.2, all passed:
npm run lintnpm run format:checknpm run typechecknpm run buildnpm 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:buildwas 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.tsnow 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 newUNMATCHEDstring, 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, andscripts/size-baseline.mdbump 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
transcribein 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.Macroscope summarized 60446b8.