mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6998] [MERGED] feat(characters): add a Voice section to the Character Editor #7421
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#7421
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/6998
Author: @SpicyMarinara
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/character-voice-section📝 Commits (7)
70fe5c4feat(characters): add a Voice section to the Character Editor03219ecfix(characters): make the Voice section show the voice in use and keep typing through slow saves9852343docs(changelog): point the Voice section entry at its Engine issue00de07dMerge remote-tracking branch 'origin/staging' into feat/character-voice-section3694331test(tts): check that chat playback calls the speaker lookup, whatever its argument namesc37fd91Merge remote-tracking branch 'origin/staging' into feat/character-voice-sectionc6e090cMerge branch 'staging' into feat/character-voice-section📊 Changes
12 files changed (+598 additions, -66 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/characters/creating-and-editing-characters.md(+13 -4)📝
docs/media/tts-setup.md(+4 -2)📝
e2e/core-flows.e2e.ts(+1 -1)📝
e2e/ux-feedback-sweep.e2e.ts(+63 -1)📝
packages/client/src/components/characters/CharacterEditor.tsx(+67 -15)➕
packages/client/src/components/characters/CharacterVoicePicker.tsx(+251 -0)📝
packages/client/src/components/chat/ChatMessage.tsx(+7 -9)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+27 -27)📝
packages/client/src/lib/tts-dialogue.ts(+48 -7)📝
packages/client/src/localization/locales/en.json(+13 -0)📝
scripts/regressions/tts-source-persistence.regression.ts(+103 -0)📄 Description
Linked issue
Closes #6997
Refs Pasta-Devs/Marinara-Agents#1176, where this was requested and scoped.
Why this change
A character's Text to Speech voice could only be set in Connections → Text to Speech, which people struggle to find, and it felt disconnected from the character. The maintainer agreed on Agents#1176 to add a Voice section to the Character Editor that edits the same setting, and to leave out clone audio, voice descriptions and any new storage.
What changed
CharacterVoicePicker.tsx), between Colors and Stats. It reads and writes this character's row of the shared TTSvoiceAssignments, the same list Connections → Text to Speech edits, so the two always match. A pick saves right away, as on the TTS card.VoiceSelectandCustomizableVoiceInputare now exported, andbuildTTSVoiceOptionsis shared by the card and the editor. It has a refresh button, and Preview speaks a short line through the existingttsService.speak→/api/tts/speakpath.extensions.phoneticName. Preview says it, so you can hear the pronunciation.resolveTTSVoiceForSpeakerprefers a character's own row over a row that only matches by name.docs/characters/creating-and-editing-characters.mdanddocs/media/tts-setup.mddescribe the Voice tab and the new home of Phonetic name. CHANGELOG entry added.tts-source-persistence.regression.tsis extended for the read and write helpers and the same-name rules.e2e/ux-feedback-sweep.e2e.tsnow counts 10 editor sections, and a new desktop test covers the same-name placeholder and typing through a held save.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Run by the agent:
pnpm check,pnpm localization:checkandtts-source-persistencepass.a4c32dfbe; the rebase only brought Decision changes): the e2e on desktop Chromium (both tests, 3 runs each) and the mobile section count passed, and so didpnpm smoke:uion desktop.findTTSCharacterIdBySpeakerName(...); the import line alone still does not pass.Still to verify by hand:
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)English guides updated:
docs/characters/creating-and-editing-characters.mdanddocs/media/tts-setup.md. A[docs-i18n]follow-up issue tracks the translations.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.