mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7765] [MERGED] fix(tts): preserve descriptive vocal cues and guide Game dialogue #7917
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#7917
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/7765
Author: @SpicyMarinara
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/tts-emotion-cues📝 Commits (2)
6e29c87fix(tts): preserve descriptive vocal cues and guide Game dialogue9296ea1test(tts): cover unclosed cues and clarify playback guide📊 Changes
16 files changed (+583 additions, -20 deletions)
View changed files
📝
docs/media/tts-setup.md(+6 -0)📝
e2e/scene-tts-preferences.e2e.ts(+26 -1)📝
packages/client/src/components/game/GameCombatUI.tsx(+1 -0)📝
packages/client/src/components/game/GameNarration.tsx(+4 -0)📝
packages/client/src/lib/tts-dialogue.ts(+35 -14)📝
packages/client/src/lib/tts-roleplay-speaker-extractor.ts(+1 -1)📝
packages/server/src/routes/encounter.routes.ts(+8 -0)📝
packages/server/src/routes/game.routes.ts(+5 -0)📝
packages/server/src/routes/generate.routes.ts(+3 -1)📝
packages/server/src/routes/tts.routes.ts(+3 -2)📝
packages/server/src/services/game/gm-prompts.ts(+7 -0)📝
packages/server/src/services/game/party-prompts.ts(+7 -0)➕
packages/server/src/services/tts-emotion-guidance.ts(+20 -0)➕
scripts/regressions/game-tts-emotion-guidance.regression.ts(+102 -0)➕
scripts/regressions/game-tts-emotion.regression.ts(+306 -0)📝
scripts/regressions/tts-source-persistence.regression.ts(+49 -1)📄 Description
Linked issue
Closes #7762
Why this change
Emotion-enabled dialogue formatting was losing requested vocal directions to the playback bracket filter. Richer inline cues also let speech models express changes in voice, pace, volume, and emotion without rewriting the dialogue. Game needs the same guidance in its existing scene, party, and combat generation calls.
What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdRecorded automated results on the implementation tree committed as
6e29c87cf, based oneed2c7c2266e66c0326c5cdf07995d9a2e82949e:pnpm installandpnpm check: passed; the full project check was rerun successfully on the final tree.pnpm regression:prompt: passed.node scripts/run-regressions.mjs --filter tts: 10/10 passed, including Game guidance and request forwarding.pnpm smoke:ui: 7/7 passed.pnpm exec playwright test -c playwright.config.ts e2e/scene-tts-preferences.e2e.ts --grep 'TTS playback filters' --project=desktop-chromium --project=mobile-chromium --project=mobile-webkit --workers=1: 3/3 passed.pnpm smoke:production: 3/3 passed across the same browser projects.docker build --platform linux/arm64 --progress plain -f Dockerfile.lite --build-arg BUILD_COMMIT=eed2c7c2266e66c0326c5cdf07995d9a2e82949e --build-arg BUILD_BRANCH=fix/tts-emotion-cues --tag marinara-tts-emotion-local:lite-arm64-eed2c7c2-9b0c3a64 .: passed on native ARM64 Docker/OrbStack. The image contains the final working tree; its baked HEAD metadata names the baseline commit.node scripts/smoke-container.mjs marinara-tts-emotion-local:lite-arm64-eed2c7c2-9b0c3a64 lite arm64: passed write/read phases, covering compiled API/frontend/assets, native bindings, nonroot ownership, persistence, and clean replacement. Temporary container and volume were removed.Review follow-up
9296ea144changes only the guide wording and adds an unclosed-bracket regression.pnpm check, the focused source-persistence regression (1/1), and Prettier checks passed again. Both hosted review comments were addressed and their threads resolved. Production code is unchanged by this follow-up.Manual verification notes
Review disposition: retaining arbitrary bracketed text with emotion indicators enabled is intentional. Free-form and multilingual directions cannot reliably be distinguished from unrelated notes in the current text-only contract. Known structural markers are removed; a semantic allowlist would reject valid requested cues. The guide documents the precedence and the off switch restores filtering. This was a minor review observation, not a finding-free review.
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Updated
docs/media/tts-setup.md. Translation follow-up: #7763, titled[docs-i18n] docs/media/tts-setup.md. No version or changelog changes.UI evidence (if applicable)
No new UI or layout. The existing preference controls and their persistence were exercised by the focused browser case.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.