Skip to content

Add speech-server transcription and speaker review - #62

Closed
region23 wants to merge 14 commits into
gsamat:masterfrom
region23:codex/nemotron-transcribe-participants
Closed

region23 wants to merge 14 commits into
gsamat:masterfrom
region23:codex/nemotron-transcribe-participants

Conversation

@region23

@region23 region23 commented Nov 6, 2026 •

Copy link
Copy Markdown

Summary

Add a macOS speech-server engine for Nemotron 3.5 Transcribe and reuse the
Participants tab to confirm speaker names before the summary is generated.

record/import → a diarization-capable STT server → timed speaker turns
              → Participants: name or skip → summary

The server and model are managed by the user. Requests longer than 40 minutes
are split into separately labelled parts; completed parts can be reused after a
failure; retries keep completed parts and validate the source mix before reuse.
Transcript publication and the corresponding review state are committed together.
Existing audio retention is applied after speaker review. Renaming a
speaker after the summary marks it for an explicit update.

Participant rows group each editable name with its audio examples and quotes.
The review gives the list more room, preserves the saved window split, and
keeps the current scroll position and in-progress edits during routine updates.
The recordings window groups actions with the selected meeting, exposes the
re-transcription engine menu, and keeps review decisions available across tabs.

Evidence

  • Before: diarized transcriptions were summarized without a manual speaker
    review; the configured local engines distinguish tracks rather than multiple
    remote speakers.
  • After: 828 Swift tests passed in 107 suites (including expected opt-in
    skips); the AppKit field-editor test passed separately in an isolated process.
  • The site checks and 23 Python script tests passed. Russian and English
    participant-window snapshots were checked in light and dark appearances.
  • In a separate test app with eight synthetic voices, scrolled to the final
    participant and saved a name without losing the scroll position; after the
    later window redesign, checked the engine menu and skipped review while
    preserving a test name.
  • A real local mlx-audio 0.6.4 HTTP request through the Amanu client returned
    timed words for both speakers in a public Russian fixture.
  • A paid OpenRouter Nemotron 3.5 test on a public 36-second, two-speaker
    Russian fixture returned the expected text and word timestamps without
    speaker IDs. OpenRouter rejected diarize=true with HTTP 400; passing
    DeepInfra-specific options did not yield speaker labels either. The current
    speaker-aware Amanu profile therefore cannot use this model via OpenRouter.
  • DeepInfra has HTTP contract fixtures but has not been tested against its paid
    live API. The full 77-minute end-to-end pass remains outstanding.
  • In an isolated two-track fixture, playback started and stopped on schedule,
    including while a menu was open; acoustic synchronization was not measured.
  • Manually exercised the actual settings and participant windows in an isolated
    test application with synthetic meetings: name a voice without pressing
    Return, continue to the next meeting, skip, and inspect the named transcript.
    The settings recognition test also sent generated speech to the local MLX
    server and returned text. A packaged-app run and live summary generation
    remain outstanding.

Merge Danger

Door: two-way

Blast Radius: macOS transcription and post-processing

The new review step affects diarizing engines and audio retention. Voice IDs
are scoped to each request; matching speakers across parts remains manual.
A failed compatible transcription with completed parts can retain uncompressed
audio for retry. Echo cancellation may produce a different mix on a later run;
that safely misses the cache but may require repeat inference. OpenRouter model
capabilities vary; unsupported diarization fails explicitly and retains audio.

@gsamat

gsamat commented Dec 6, 2026

Copy link
Copy Markdown
Owner

Thank you very much for putting this together and exploring MLX/Nemotron diarization! We decided to go with the simpler built-in FluidAudio VBx option (#37) because it requires no external server setup, keeps Amanu's zero-touch flow, and looks good enough for most users. Really appreciate the contribution!

@gsamat gsamat closed this Dec 6, 2026
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