mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7851] [MERGED] feat(tts): use an existing Audio connection in the Text to Speech card #7968
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#7968
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/7851
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/7848-tts-audio-connection📝 Commits (1)
978e5c3feat(tts): use an existing Audio connection in the Text to Speech card📊 Changes
11 files changed (+951 additions, -203 deletions)
View changed files
📝
docs/connections/providers-reference.md(+1 -1)📝
docs/media/tts-setup.md(+19 -1)📝
e2e/tts-pcm-settings.e2e.ts(+86 -0)📝
packages/client/src/components/characters/CharacterVoicePicker.tsx(+6 -1)📝
packages/client/src/components/game/GameSurface.tsx(+13 -7)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+353 -164)📝
packages/client/src/hooks/use-tts.ts(+10 -6)📝
packages/client/src/localization/locales/en.json(+5 -0)📝
packages/server/src/routes/tts.routes.ts(+109 -23)📝
packages/shared/src/types/tts.ts(+33 -0)➕
scripts/regressions/tts-audio-connection-source.regression.ts(+316 -0)📄 Description
Linked issue
Closes #7848
Thanks to @ebev for the proposal and the careful write-up in #7848. This PR builds it as discussed on the issue.
Why this change
What changed
connectionId) in the TTS settings.GET /api/tts/configshows the connection's adapter, address and model (no key), so every reader (Game narration, character voices, the speech cache) sees what it speaks with.connectionProfilesby connection ID. A connection with a profile uses only its own address and model (blank fields use the adapter's defaults), so two connections never borrow each other's or the card's values.tts.connection.*; warnings use the steady theme accent.docs/media/tts-setup.mdgains a "Use an Audio connection" section and a troubleshooting entry;docs/connections/providers-reference.mdlinks to it. The release translation sweep covers the other languages.scripts/regressions/tts-audio-connection-source.regression.tscovers selection stored by ID, credentials read from the connection (including a rotated key), profiles isolated between two connections on the same adapter, regular sources unchanged, the master switch, explicit game routing, deleted and under-review connections refused without fallback, and no key in the stored settings or in/configand/voicesresponses.e2e/tts-pcm-settings.e2e.tsgains a desktop test for the selector: saved by ID, fields hidden, kept after reload, and the missing-connection notice.Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for reference, not a substitute for the boxes above):
pnpm check: passed (exit 0). Its only lint output is an existing warning inHomeProfessorMariChat.tsx.node ./scripts/run-regressions.mjs --filter tts: 11/11 passed, including the new regression. One run while the machine was very busy (load average about 98) reported 1/11 failed without naming the file; the two reruns on the final commit passed 11/11. Also passed:roleplay-commands,open-issuesand the other regressions that read the touched client files.npx playwright test --project=desktop-chromium e2e/tts-pcm-settings.e2e.ts e2e/tts-request-timeout.e2e.ts e2e/scene-tts-preferences.e2e.ts e2e/tts-mobile-playback.e2e.ts: 12/12 passed.tts-pcm-settingsandtts-request-timeoutpassed again on the final commit (3/3).Manual verification notes
Please check these 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 docs updated:
docs/media/tts-setup.mdanddocs/connections/providers-reference.md. Translations are left to the release translation sweep. No CHANGELOG entry (compiled at release time).UI evidence (if applicable)
The new e2e attaches two screenshots to its Playwright report:
tts-card-audio-connection-source(connection chosen, hint shown, address/key/model hidden) andtts-card-missing-audio-connection(missing-connection notice and header label).Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.