mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7040] [CLOSED] feat(tts): add connection-scoped custom voice upload and management #7444
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7444
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7040
Author: @palinalif
Created: 10/4/2026
Status: ❌ Closed
Base:
staging← Head:feat/connection-custom-voice-upload📝 Commits (7)
8cd6a9dfeat(tts): add connection-scoped custom voice upload and managementb29a445fix(tts): recover confirmed custom voice deletion cleanupc6378d3feat(tts): manage connection voices from the TTS cardce17318feat(tts): support generic custom voice enrollment and clarify local setup9fd2cf0Merge staging and preserve atomic TTS voice updatesd35bda5Merge latest staging Home widget updatese5b8691Fix custom voice preview lifecycle and connection consistency📊 Changes
31 files changed (+5808 additions, -257 deletions)
View changed files
📝
CHANGELOG.md(+12 -0)📝
docs/media/tts-setup.md(+29 -0)➕
e2e/custom-voices.e2e.ts(+945 -0)➕
e2e/tts-card-connections.e2e.ts(+446 -0)📝
packages/client/src/components/characters/CharacterVoicePicker.tsx(+2 -2)📝
packages/client/src/components/chat/ChatArea.tsx(+1 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+2 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+26 -0)➕
packages/client/src/components/connections/CustomVoiceManager.tsx(+864 -0)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+13 -14)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+377 -203)📝
packages/client/src/hooks/use-connections.ts(+14 -2)📝
packages/client/src/hooks/use-tts.ts(+26 -11)📝
packages/client/src/lib/tts-dialogue.ts(+4 -0)📝
packages/client/src/lib/tts-service.ts(+5 -1)📝
packages/client/src/localization/locales/en.json(+80 -0)➕
packages/server/src/routes/custom-voices.routes.ts(+56 -0)📝
packages/server/src/routes/tts.routes.ts(+288 -21)➕
packages/server/src/services/tts/custom-voice-profile.ts(+180 -0)➕
packages/server/src/services/tts/custom-voice-service.ts(+389 -0)...and 11 more files
📄 Description
feat(tts): add connection-scoped custom voice upload and management
Target: Pasta-Devs/Marinara-Engine → staging. Ready for review.
Linked issue
Closes #7041 — connection-scoped custom TTS voice management.
The broader voice proposals linked below are groundwork only, not closed by this PR.
What changed
Manage custom TTS voices inside Marinara instead of switching to provider scripts or dashboards.
Voice lists, previews, and management use the selected connection. Switching connections closes the manager and stops its preview. Existing character assignments are preserved; Marinara does not translate voice IDs between providers. With no default or fallback connection selected, the existing TTS settings remain available.
Why this change
How this relates to the voice proposals
This is a first step toward the following issues, not a complete implementation or a request to close them:
Clearer audio setup
TTS_LOCAL_URLS_ENABLED=truein Marinara's server runtime.env.These are wording changes, not changes to the permission policy.
Supported servers and recordings
Choose a custom-voice profile on a saved OpenAI-compatible Audio connection. Marinara does not guess support from the model name.
openai-compatible: VoxCPM2-style voice registration using/audio/voices, withnameandaudio_sampleupload fields.vllm-omni: additionally requires a real consent recording ID issued by the provider. A transcript can be supplied when the backend/model needs one.Recording requirements:
Privacy and safety
What happens when you delete a voice?
Validation
pnpm checkpassed locally: builds, lint, types, formatting, and localization.Automated checks
e5b86912953c75e6f36714b78353162f64ab354b: fixed preview cleanup/replacement, reused-name upload selection, reactive voice-list connection identity, consent/deletion wording, and captured config consistency.pnpm check,pnpm check:e2e-types,pnpm version:check, UI smoke 7/7, custom-voice/TTS Node regressions 10/10, and focused desktop/mobile Chromium tests 44/44 passed locally. Read-only review found no further concrete defects. Browser/provider tests are mocked lifecycle/request-wiring proof, not acoustic validation; WebKit remains unavailable due to host libraries. Translated-guide issue remains unfiled. New GitHub checks and CodeRabbit re-review are pending.stagingmerged through35621d44b; conflicts resolved. Preserved atomic character-voice updates and added queued deletion cleanup to prevent concurrent assignment loss.pnpm check, custom-voice regressions 4/4, TTS regressions 6/6, UI smoke 7/7, and desktop/mobile Chromium voice tests 34/34 all passed. Browser/provider tests use mocks; no acoustic-quality claim. Local Node 22 emitted the repository's Node >=24 engine warning.git diff --check.Live VoxCPM2 voice discovery was verified separately on the existing installation. Live enrollment, deletion and acoustic validation with a permitted recording have not been run.
Earlier checks, before the generic-profile extension:
Still needs validation:
Known limitations
Follow-ups / exclusions
Not included in this PR:
Docs and release impact
Outstanding review and manual checks
Summary by CodeRabbit
TTS_LOCAL_URLS_ENABLED=true.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.