[PR #3816] [MERGED] Fix PocketTTS provider voice discovery #6117

Closed
opened 2026-10-23 04:07:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3816
Author: @SpicyMarinara
Created: 7/19/2026
Status: ✅ Merged
Merged: 7/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/pockettts-provider-voices


📝 Commits (3)

  • 2eeb96b chore: start PocketTTS voice discovery fix
  • 8ce041b fix: expose PocketTTS server voices
  • c2e69b1 Merge branch 'staging' into agent/pockettts-provider-voices

📊 Changes

6 files changed (+158 additions, -65 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/media/tts-setup.md (+10 -16)
📝 e2e/core-flows.e2e.ts (+70 -14)
📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+75 -33)
📝 packages/server/src/routes/tts.routes.ts (+1 -1)
📝 scripts/regressions/tts-source-persistence.regression.ts (+1 -1)

📄 Description

Linked issue

Closes #3786

Why this change

PR #3800 corrected PocketTTS speech generation, but the settings UI still hid the configured server catalog behind free-text autocomplete. This made built-in and custom voices returned by the PocketTTS server difficult or impossible to select reliably.

What changed

  • Show PocketTTS server voices in an explicit native selector for global and narrator assignments while retaining an adjacent custom voice ID, URL, or path field.
  • Reuse the same fetched catalog already consumed by per-character assignments and show a positive loaded-voice count.
  • Align new PocketTTS profiles and setup guidance with the compatible server default at http://localhost:49112; existing saved URLs are not migrated.
  • Cover the real Server 2.5.4 GET /v1/voices response shape and the visible custom-voice option end to end.

Automated evidence

  • pnpm exec playwright test e2e/core-flows.e2e.ts --grep PocketTTS\ discovers --project=desktop-chromium
  • pnpm regression:tts
  • pnpm check

Manual verification

  • Connect a real PocketTTS OpenAI-compatible server and verify its built-in and custom voices appear in global, per-character, and narrator controls.
  • Select a server voice and a direct voice path in turn, then preview speech from each.

Risk

Existing saved PocketTTS URLs and custom voice paths remain untouched. Speech generation continues through the endpoint introduced by #3800, and provider failures retain the existing fallback voice list.

Summary by CodeRabbit

  • New Features

    • Select available PocketTTS server voices from dropdowns for global, character, and narrator assignments.
    • Continue using custom voice IDs, URLs, or file paths when needed.
    • View the number of voices loaded from the PocketTTS server.
  • Bug Fixes

    • Updated PocketTTS default connection settings for compatible server setups.
  • Documentation

    • Updated setup, voice configuration, and troubleshooting guidance for PocketTTS.

🔄 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/3816 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/19/2026 **Status:** ✅ Merged **Merged:** 7/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/pockettts-provider-voices` --- ### 📝 Commits (3) - [`2eeb96b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2eeb96bed8548e06edc579b86234fcada02b1dfb) chore: start PocketTTS voice discovery fix - [`8ce041b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ce041bb36a108e4b0f382c864fdd9eabf63ebc5) fix: expose PocketTTS server voices - [`c2e69b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c2e69b12745746912745791140602adcab89fb7c) Merge branch 'staging' into agent/pockettts-provider-voices ### 📊 Changes **6 files changed** (+158 additions, -65 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/media/tts-setup.md` (+10 -16) 📝 `e2e/core-flows.e2e.ts` (+70 -14) 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+75 -33) 📝 `packages/server/src/routes/tts.routes.ts` (+1 -1) 📝 `scripts/regressions/tts-source-persistence.regression.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #3786 ## Why this change PR #3800 corrected PocketTTS speech generation, but the settings UI still hid the configured server catalog behind free-text autocomplete. This made built-in and custom voices returned by the PocketTTS server difficult or impossible to select reliably. ## What changed - Show PocketTTS server voices in an explicit native selector for global and narrator assignments while retaining an adjacent custom voice ID, URL, or path field. - Reuse the same fetched catalog already consumed by per-character assignments and show a positive loaded-voice count. - Align new PocketTTS profiles and setup guidance with the compatible server default at http://localhost:49112; existing saved URLs are not migrated. - Cover the real Server 2.5.4 GET /v1/voices response shape and the visible custom-voice option end to end. ## Automated evidence - pnpm exec playwright test e2e/core-flows.e2e.ts --grep PocketTTS\ discovers --project=desktop-chromium - pnpm regression:tts - pnpm check ## Manual verification - [ ] Connect a real PocketTTS OpenAI-compatible server and verify its built-in and custom voices appear in global, per-character, and narrator controls. - [ ] Select a server voice and a direct voice path in turn, then preview speech from each. ## Risk Existing saved PocketTTS URLs and custom voice paths remain untouched. Speech generation continues through the endpoint introduced by #3800, and provider failures retain the existing fallback voice list. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Select available PocketTTS server voices from dropdowns for global, character, and narrator assignments. * Continue using custom voice IDs, URLs, or file paths when needed. * View the number of voices loaded from the PocketTTS server. * **Bug Fixes** * Updated PocketTTS default connection settings for compatible server setups. * **Documentation** * Updated setup, voice configuration, and troubleshooting guidance for PocketTTS. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:07:14 +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#6117
No description provided.