Skip to content

feat(watch): add opt-in speaker diarization on managed WhisperX - #260

Closed
pachecoke wants to merge 1 commit into
bradautomates:mainfrom
pachecoke:upgrade-0.3.2-keep-diarization
Closed

pachecoke wants to merge 1 commit into
bradautomates:mainfrom
pachecoke:upgrade-0.3.2-keep-diarization

Conversation

@pachecoke

Copy link
Copy Markdown

Re-port the fork's pyannote speaker diarization onto upstream 0.3.2's rewritten local-transcription architecture. Instead of a separate ~/whisperx-env, diarization now reuses upstream's managed WhisperX venv (~/.cache/watch/whisperx-venv) and runs as an opt-in parallel path, leaving upstream's transcription-only default behavior unchanged.

  • add --diarize flag with conflict validation and speaker-aware routing
  • gate behind WATCH_WHISPERX_DIARIZE (off by default); configure model, speaker counts, and clustering threshold via WATCH_WHISPERX_*` settings
  • support GPU through upstream's WATCH_WHISPERX_DEVICE/COMPUTE_TYPE knobs
  • make setup.py device-aware: install CUDA (cu128) or CPU torch wheels and pyannote.audio when diarization is enabled, with gated-model guidance
  • read HF token from config and pass it via environment, never argv
  • fix latent bug: preserve the speaker field across focus-range segment shifts (--start/--end) so labels survive
  • document --diarize and GPU settings in SKILL.md; port and extend tests/test_diarization.py

Re-port the fork's pyannote speaker diarization onto upstream 0.3.2's
rewritten local-transcription architecture. Instead of a separate
~/whisperx-env, diarization now reuses upstream's managed WhisperX venv
(~/.cache/watch/whisperx-venv) and runs as an opt-in parallel path,
leaving upstream's transcription-only default behavior unchanged.

- add --diarize flag with conflict validation and speaker-aware routing
- gate behind WATCH_WHISPERX_DIARIZE (off by default); configure model,
  speaker counts, and clustering threshold via WATCH_WHISPERX_* settings
- support GPU through upstream's WATCH_WHISPERX_DEVICE/COMPUTE_TYPE knobs
- make setup.py device-aware: install CUDA (cu128) or CPU torch wheels and
  pyannote.audio when diarization is enabled, with gated-model guidance
- read HF token from config and pass it via environment, never argv
- fix latent bug: preserve the speaker field across focus-range segment
  shifts (--start/--end) so labels survive
- document --diarize and GPU settings in SKILL.md; port and extend
  tests/test_diarization.py
@pachecoke pachecoke closed this Oct 20, 2026
@pachecoke
pachecoke deleted the upgrade-0.3.2-keep-diarization branch October 20, 2026 21:32
@pachecoke
pachecoke restored the upgrade-0.3.2-keep-diarization branch October 20, 2026 21:38
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