8000 feat(speakers): split one asset's voice off the person it was matched to by adeelahmad · Pull Request #663 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(speakers): split one asset's voice off the person it was matched to - #663

Merged
adeelahmad merged 1 commit into
mainfrom
claude/project-thread-xfmkzn
Oct 19, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/project-thread-xfmkzn

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Description

Before: when voice recognition matched someone to the wrong person in one recording, the only fixes were renaming the person everywhere or splitting by hand.

After: on that person's card in the asset's Speakers tab, Not them here gives their lines in that asset to a new person, works out the first person's voice again from the assets they're still in, and marks the two as not the same so they aren't suggested again. Undo merges them back. Agents use POST /api/v1/speakers/{sid}/detach {recording}.

How: speakers.detach moves the asset's segments and appearance to a new speaker, recomputes the original's voiceprint and records a not-same pair; it is audited as speaker.detach.

Motivation and Context

Item from the personal feature plan sheet ("wrong person matched in one recording").

Screenshots (if appropriate):

n/a

Steps to reproduce (if appropriate):

Open an asset › Speakers › a person's card › Not them here; press Undo on the toast.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change; ! in the title)

Checklist:

  • The title is a Conventional Commit.
  • My code follows the code style of this project (make hooks checks it on commit).
  • I added or updated tests (tests/api/test_speakers.py).
  • My change requires documentation updates, and I have updated docs/ accordingly (docs/api.md, docs/processing.md).
  • Users need more than the title to understand it, so I wrote it under ## Unreleased in CHANGELOG.md. Written as changelog.d/detach-voice.md, per build(release): changelog fragments in changelog.d/ instead of one Unreleased section #581.

Done questions (AGENTS.md)

  • Goal: delivers what the user wanted, merged on green CI.
  • Agents: usable through the API, MCP or an assistant tool. POST /api/v1/speakers/{sid}/detach.
  • Zero setup: no new prerequisite, .env edit or manual step.
  • Fewest clicks and keystrokes. One click on the card; Undo instead of a confirm dialog.
  • Configurable: new settings in the web app with defaults; wizard asks only what is required. n/a: no settings.
  • Light: default install still runs on a Raspberry Pi with cloud models.
  • Private and secure: data local and encrypted, passkeys, threat model updated. Needs editor access to the person's namespace, as merging does; audited.
  • Cost: cheapest path, model calls in the activity ledger, budgets respected. n/a: no model calls.
  • User decides: consequential or new actions wait for the user; defaults unchanged.
  • Upgrades: existing installs upgrade safely (upgrade step for stored-data changes). n/a: uses the existing speaker and not-same records.
  • Honest: sources cited; labelled built, in progress or planned.
  • Tests, docs and generated files updated (make openapi).
  • Open standards; dependencies keep Lens MIT. n/a: no dependencies.
  • Result reported with evidence; "refine later" items written down.
  • Reuse: existing Lens code and permissive libraries reused, nothing reinvented. Reuses merge, Undo and the not-same pairs.

Local CI (ci/local-ci.sh): FastAPI (embedded and server), Next.js, pre-commit and PR title passed.


Generated by Claude Code

@adeelahmad adeelahmad self-assigned this Oct 19, 2026
@adeelahmad
adeelahmad merged commit 604eef2 into main Oct 19, 2026
12 checks passed
@adeelahmad
adeelahmad deleted the claude/project-thread-xfmkzn branch October 19, 2026 03:54
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.

2 participants

0