mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8370] [MERGED] feat(tts): voice personas through existing character assignments #8322
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#8322
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/8370
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/8369-persona-tts-voices📝 Commits (3)
1cd16c7chore: start persona TTS voice support for #8369783f644feat(tts): reuse voice assignments for persona speech48352a2fix(tts): isolate persona playback events and Game voice state📊 Changes
16 files changed (+1102 additions, -79 deletions)
View changed files
📝
e2e/core-flows.e2e.ts(+3 -3)➕
e2e/persona-tts.e2e.ts(+329 -0)📝
packages/client/src/components/chat/ChatArea.tsx(+101 -26)📝
packages/client/src/components/chat/ChatMessage.tsx(+17 -6)📝
packages/client/src/components/game/GameNarration.tsx(+59 -18)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+21 -10)📝
packages/client/src/features/avatars/director/avatar-director.ts(+6 -1)📝
packages/client/src/hooks/use-chats.ts(+3 -1)📝
packages/client/src/hooks/use-generate.ts(+2 -0)📝
packages/client/src/lib/tts-autoplay.ts(+21 -0)📝
packages/client/src/lib/tts-dialogue.ts(+61 -1)📝
packages/client/src/lib/tts-roleplay-speaker-extractor.ts(+20 -2)📝
packages/client/src/localization/locales/en.json(+14 -10)📝
scripts/regressions/avatar-director.regression.ts(+67 -0)📝
scripts/regressions/game-tts-emotion.regression.ts(+150 -1)📝
scripts/regressions/tts-source-persistence.regression.ts(+228 -0)📄 Description
Linked issue
Closes #8369
Why this change
Personas need the same voice assignment path as characters. The maintainer explicitly requested reusing the existing fields and confirmed that narration should include both messages they send and persona dialogue generated in the story.
What changed
No new persisted fields, persona properties, mode toggles, provider choices or dependencies.
Validation
Tested source:
48352a29aeb65bb4038537241b6b5eed687c9fe0; source hashes are unchanged from the validated working diff.pnpm install --frozen-lockfile: passed without lockfile changes.pnpm check: passed on the final patch (zero lint errors; one pre-existing HomeProfessorMariChat hook warning).node scripts/run-regressions.mjs --filter tts --concurrency 2: 13/13 passed, including real assignment-route persistence, persona/snapshot resolution, audio sequencing and Game result policies.node scripts/run-regressions.mjs --filter roleplay-streaming --concurrency 1: 1/1 passed; generated-message recovery remains assistant/narrator-only.Browser commands used disposable Engine test data and ports 7861–7864, with at most two workers. A runner artifact-directory collision was corrected by rerunning the unchanged desktop checks separately; no assertions, skips or timeouts were loosened.
The new browser suite uses a local model fixture and synthetic speech audio. It exercises the real selector, saved-message hooks, generation stream, voice requests, mode gates, historical replay and Game navigation. The selector save transport is intercepted per page; the existing real TTS assignment route regression separately covers storage writes and profile preservation.
Manual verification tasks
Review fixes and proof boundaries
The first CodeRabbit pass produced two comments about one defect: Engine-generated combat reports use user-message rows. The actual Game browser regression reproduced that unwanted speech. The fix reuses the existing complete Engine result-block parser and also covers item reports, without suppressing ordinary or incomplete/literal marker text.
Dottore's first full review identified two additional defects. Both were independently reproduced and repaired: a sent-user event drove a character avatar for 800 ms before the reply, and a blocking transition discarded finished Game voice markers. The actual avatar event/store and Game effect regressions now pass, while the browser preview regression passes in all three projects. Existing persona speech and character/narrator controls remain passing.
Browser emulation and fixture-provider checks do not establish physical-device or real-provider results. The new sent-message autoplay requires an explicit persona assignment under the existing per-character voice mode; existing unassigned/shared/manual behavior remains available.
Docs and release impact
Canonical English UI copy is updated; community catalogs retain their normal English fallback. No user-facing guide, release metadata, storage format or changelog changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.