mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7723] [MERGED] fix(tts): let a slow voice server have more time #7898
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#7898
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/7723
Author: @SpicyMarinara
Created: 10/16/2026
Status: ✅ Merged
Merged: 10/16/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7711-tts-timeout📝 Commits (3)
7a12b79fix(tts): let a slow voice server have more time95f7923fix(tts): put the connection's timeout label above its field, and word the card's scope as speechf74be2bfix(tts): let a Request timeout above 300 s actually wait that long📊 Changes
18 files changed (+414 additions, -13 deletions)
View changed files
📝
docs/TROUBLESHOOTING.md(+1 -0)📝
docs/connections/providers-reference.md(+1 -1)📝
docs/media/tts-setup.md(+9 -0)➕
e2e/tts-request-timeout.e2e.ts(+89 -0)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+30 -0)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+19 -0)📝
packages/client/src/hooks/use-connections.ts(+1 -0)📝
packages/client/src/lib/connection-transfer.ts(+12 -5)📝
packages/client/src/lib/tts-service.ts(+8 -0)📝
packages/client/src/localization/locales/en.json(+4 -0)📝
packages/server/src/db/schema/connections.ts(+2 -0)📝
packages/server/src/routes/tts.routes.ts(+23 -5)📝
packages/server/src/services/storage/connections.storage.ts(+3 -0)📝
packages/shared/src/schemas/connection.schema.ts(+9 -0)📝
packages/shared/src/types/connection.ts(+2 -0)📝
packages/shared/src/types/tts.ts(+15 -0)📝
scripts/regressions/tsconfig.client-lanes.json(+6 -2)➕
scripts/regressions/tts-request-timeout.regression.ts(+180 -0)📄 Description
Linked issue
Closes #7711
Why this change
POST /api/tts/speak) gave up after a hard-coded 60 seconds. Image, video and agent calls already have timeouts in the app; speech had none..envsetting.What changed
requestTimeoutMs. Settings saved before this change read as 60 s.audioTimeoutMs(null means the 60 s default, as with the Decision time limit). It is carried through connection export/import and duplication./api/tts/speakuses the limit of whatever it speaks through. That is the connection's own limit for an audio connection, or the card's for the card's settings and its Preview. The card's value never applies to a connection, so each limit is set next to the server it is for.code: "tts_timeout", the seconds waited and the connection name. The client shows "No audio after 60 s. To wait longer, raise Request timeout in Connections > Text to Speech." or "...in the audio connection." The server log line names the same setting. Theerrortext is unchanged.docs/media/tts-setup.md(new "Request timeout" section and a troubleshooting bullet),docs/TROUBLESHOOTING.md(Voice, calls, and TTS),docs/connections/providers-reference.md(Audio).scripts/regressions/tts-request-timeout.regression.tsruns the real route against a loopback voice server that answers after 800 ms, with timers scaled 200 times faster. With the old fixedAbortSignal.timeout(60_000)restored it fails (actual: [60000], expected: [300000]). It also fails without the client mapping, because the message stays "TTS request timed out".e2e/tts-request-timeout.e2e.tssaves the field on the card and on an audio connection, then checks both after a reload.Out of scope: in chats, a failed Speak or auto-play is silent today, with no toast. The new message shows wherever TTS errors already appear: the card's Preview, the character voice preview, and the server log.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (not a substitute for the boxes above):
tsc --noEmitfor shared, server, client and root; ESLint on the changed client files; Prettier on the changed files;node scripts/check-locales.mjsandpnpm localization:check. The new regression and the existing TTS/connection regressions also passed: tts-pcm, tts-source-persistence, tts-voice-assignment-route, tts-cache-clear, tts-safari-play-guard, avatar-tts-lipsync, roleplay-vn-tts, speech-to-text-server, decision-connection-time-limit, decision-chat-connection, connection-model-list, connection-test-parameters, agent-connection-parameters, default-embedding-connection, game-satellite-connection-parameters and profile-import-data-security.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs changed under
docs/:docs/media/tts-setup.md,docs/TROUBLESHOOTING.md,docs/connections/providers-reference.md. The[docs-i18n]follow-up is linked in a comment below.UI evidence (if applicable)
The e2e spec attaches screenshots of both fields (
tts-card-request-timeout,audio-connection-request-timeout) to its Playwright report.🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.