[PR #8374] [MERGED] fix(tts): Eleven v4 follow-up — drop undocumented v4 Turbo fallback, disable Speed where it does not apply #8324

Closed
opened 2026-10-27 06:07:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8374
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/elevenlabs-v4


📝 Commits (3)

  • 62908b0 fix(tts): offer only documented Eleven v4 TTS, and turn off speed where it does not apply
  • b34d1a5 fix(tts): disable Speed for Eleven v3 aliases too
  • 7c99223 fix(tts): ignore Object.prototype names in the Eleven alias lookup

📊 Changes

5 files changed (+44 additions, -27 deletions)

View changed files

📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+6 -3)
📝 packages/client/src/localization/locales/en.json (+3 -2)
📝 packages/server/src/routes/tts.routes.ts (+3 -19)
📝 packages/shared/src/types/tts.ts (+19 -0)
📝 scripts/regressions/tts-source-persistence.regression.ts (+13 -3)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Fixes #8372 (follow-up to #8373)

Why this change

Local CodeRabbit flagged two problems with #8373, which merged before these fixes landed:

  • eleven_v4_turbo was offered in the fallback model list. ElevenLabs documents it for the Text to Dialogue WebSocket, not the HTTP text-to-speech route Marinara uses, so picking it from the fallback can fail.
  • The Speed slider still looked active for Eleven v3 and v4, although their requests ignore speed.

What changed

  • eleven_v4_turbo: it leaves the fallback model list and the help copy. The account's own model list, which Marinara filters on the API's can_do_text_to_speech flag, still shows it if ElevenLabs marks it as TTS-capable.
  • Speed slider: the settings card disables it for Eleven v3 and v4, with a note: "Eleven v3 and Eleven v4 have no speed setting, so this slider does not apply to them."
  • Shared rule: which models take speed now lives in @marinara-engine/shared (elevenLabsModelSupportsSpeed). The server request and the settings card use the same rule, and the TTS regression imports it from shared.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agent:

  • node scripts/run-regressions.mjs --filter tts-source-persistence: passes.
  • pnpm localization:check: passes.
  • tsc --noEmit for the client and server: passes.

Still to do by hand:

  • With Eleven v3 or v4 selected, the Speed slider is disabled and shows its note. Other ElevenLabs models still allow 0.7×–1.2×.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8374 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/elevenlabs-v4` --- ### 📝 Commits (3) - [`62908b0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/62908b05af211101bc05b815bcd36f452b8892a2) fix(tts): offer only documented Eleven v4 TTS, and turn off speed where it does not apply - [`b34d1a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b34d1a5e65ee30ce2636192d8946f5e7e616e8f1) fix(tts): disable Speed for Eleven v3 aliases too - [`7c99223`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7c99223c4fbc3595619af6b1c23975d724266ff4) fix(tts): ignore Object.prototype names in the Eleven alias lookup ### 📊 Changes **5 files changed** (+44 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+6 -3) 📝 `packages/client/src/localization/locales/en.json` (+3 -2) 📝 `packages/server/src/routes/tts.routes.ts` (+3 -19) 📝 `packages/shared/src/types/tts.ts` (+19 -0) 📝 `scripts/regressions/tts-source-persistence.regression.ts` (+13 -3) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Fixes #8372 (follow-up to #8373) ## Why this change Local CodeRabbit flagged two problems with #8373, which merged before these fixes landed: - `eleven_v4_turbo` was offered in the fallback model list. ElevenLabs documents it for the Text to Dialogue WebSocket, not the HTTP text-to-speech route Marinara uses, so picking it from the fallback can fail. - The Speed slider still looked active for Eleven v3 and v4, although their requests ignore speed. ## What changed - **`eleven_v4_turbo`:** it leaves the fallback model list and the help copy. The account's own model list, which Marinara filters on the API's `can_do_text_to_speech` flag, still shows it if ElevenLabs marks it as TTS-capable. - **Speed slider:** the settings card disables it for Eleven v3 and v4, with a note: "Eleven v3 and Eleven v4 have no speed setting, so this slider does not apply to them." - **Shared rule:** which models take speed now lives in `@marinara-engine/shared` (`elevenLabsModelSupportsSpeed`). The server request and the settings card use the same rule, and the TTS regression imports it from shared. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agent: - `node scripts/run-regressions.mjs --filter tts-source-persistence`: passes. - `pnpm localization:check`: passes. - `tsc --noEmit` for the client and server: passes. Still to do by hand: - [ ] With Eleven v3 or v4 selected, the Speed slider is disabled and shows its note. Other ElevenLabs models still allow 0.7×–1.2×. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:07:44 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8324
No description provided.