Repository navigation
feat(voice): voice-sampler foundations — OmniVoice catalog live, diarization stack repaired #2471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
097f839
feat(voice): voice-sampler foundations — OmniVoice catalog live, diar…
6bb4318
docs(agnote): 5090 voice-sampler foundations CLAIM+RELEASE row
855af32
fix(media-audio): allowlist pyannote checkpoint globals for torch>=2.…
8d5e72b
feat(voice-sampler): media-sourced voice reference worker (spec v1)
3f9eaf4
Merge remote-tracking branch 'origin/main' into feat/voice-sampler-fo…
6334cb5
fix(voice): address review threads — approval-path identifier gate, s…
9db9f96
Merge branch 'main' into feat/voice-sampler-foundations
POWERFULMOVES e851a82
Merge branch 'main' into feat/voice-sampler-foundations
POWERFULMOVES File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Submodule PMOVES-Creator
updated
6 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # Voice Sampler — media-sourced voice references (spec v1) | ||
|
|
||
| > Set, not preset: a voice enters the system only when its owner approves | ||
| > segments of their own media. No preset ships. 2026-08-07, 5090 lane. | ||
|
|
||
| ## Problem | ||
|
|
||
| Every piece of the cloning stack exists and none of them connect: | ||
|
|
||
| | Piece | Where | State | | ||
| |---|---|---| | ||
| | Clone API | flute-gateway `providers/cloning.py` (`/v1/voice/clone/register → train → synthesize_cloned`) | idle | | ||
| | Ref-audio synth | OmniVoice `:8002` catalog (`OMNIVOICE_REFERENCE_VOICE_DIR=/voices`) | bind enabled 2026-08-07 | | ||
| | Diarization | media-audio `:8082` — pyannote/speaker-diarization-3.1 (HF_TOKEN-gated) + whisper-large-v3-turbo | up (workers profile) | | ||
| | Media sources | PMOVES.YT (MinIO + transcripts), Jellyfin (`jellyfin-bridge`) | live | | ||
| | Agent spine | voice-relay (`voice.agent.response.v1`) | live | | ||
|
|
||
| ## Flow | ||
|
|
||
| ``` | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| [1] SOURCE operator picks a media item (PMOVES.YT video id / Jellyfin item id) | ||
| [2] ANALYZE media-audio /analyze {analysis_type: diarization} → speaker turns | ||
| [3] AUDITION segments grouped per speaker; operator listens, tags "this is me" | ||
| [4] APPROVE pub-gate decision in the room (owner-only) — nothing proceeds without it | ||
| [5] PUBLISH approved clips → | ||
| a. JuiceFS rooms/<room>/creator/references/voice/<persona>/<clip>.wav | ||
| b. OmniVoice catalog services/creator-operator/voices/<catalog-id>.wav | ||
| c. flute /v1/voice/clone/register {persona_id, sample} | ||
| [6] ANNOUNCE NATS voice.reference.approved.v1 {persona_id, catalog_id, source, chit_sig} | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| ``` | ||
|
|
||
| ## Components | ||
|
|
||
| 1. **voice-sampler worker** (new, `pmoves/services/voice-sampler/`): thin | ||
| orchestrator over existing APIs — fetch media (MinIO presign / jellyfin-bridge | ||
| stream), call media-audio diarize, cut segments (pydub, already in the | ||
| media-audio image; the worker can also delegate cutting), stage candidates | ||
| in JuiceFS `.../voice-candidates/`, execute step 5 on approval events. | ||
| 2. **Voice Vault room app** (manifest `apps[]` entry, route `/voice-vault`): | ||
| source picker → speaker lanes → audition player → approve/reject per segment. | ||
| Renders in OpenRoom via the room adapter; approval posts the pub-gate event. | ||
| 3. **NATS subjects** (register in catalog): | ||
| - `voice.sample.candidates.v1` — sampler → room (candidates ready) | ||
| - `voice.reference.approved.v1` — room → sampler (owner approved) | ||
|
|
||
| ## Gates | ||
|
|
||
| - Diarization requires HF_TOKEN + accepted pyannote 3.1 license on the HF account. | ||
| - Owner-only: approval events must carry the room owner's identity; the sampler | ||
| refuses to publish references for a persona whose owner didn't sign. | ||
| - Voice references are personal data: JuiceFS + local catalog only. Never in git, | ||
| never in artifacts, never on public surfaces. | ||
|
|
||
| ## Why this closes Gate 4 | ||
|
|
||
| The operator's voice already exists across their own media. Gate 4 stops being | ||
| "record a fresh sample" and becomes "approve which segments represent you" — | ||
| a pub-gate decision, in the room, exactly where such decisions live. H3 Omni | ||
| (Maestro ≥1.6.0) then consumes the same approved clips as voice conditioning | ||
| references for video generation — one approval, every engine. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # OmniVoice reference-voice catalog | ||
|
|
||
| Drop approved reference clips here (wav/m4a/mp3). The filename (without | ||
| extension) is the catalog id passed as `voice_ref` → `ref_audio` to | ||
| POST /synthesize — the server resolves ids under this dir only, never raw paths. | ||
|
|
||
| Population path (set, not preset): media source (PMOVES.YT / Jellyfin) → | ||
| media-audio diarization → operator approves segments in the room pub-gate → | ||
| clips land here + in JuiceFS `rooms/<room>/creator/references/voice/`. | ||
|
|
||
| This dir ships empty on purpose: no voice exists until its owner approves one. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.