[PR #201] [MERGED] Feat: Add OPEN API compatible TTS #4503

Closed
opened 2026-10-22 04:08:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/201
Author: @Javedz678
Created: 4/23/2026
Status: ✅ Merged
Merged: 4/23/2026
Merged by: @SpicyMarinara

Base: main ← Head: main


📝 Commits (2)

  • eacb8b5 feat/Add text to speech feature
  • b05d613 Added TTS to changelog

📊 Changes

11 files changed (+912 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+9 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+35 -0)
📝 packages/client/src/components/chat/ChatMessage.tsx (+67 -1)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+5 -0)
➕ packages/client/src/components/panels/settings/TTSConfigCard.tsx (+410 -0)
➕ packages/client/src/hooks/use-tts.ts (+48 -0)
➕ packages/client/src/lib/tts-service.ts (+124 -0)
📝 packages/server/src/routes/index.ts (+2 -0)
➕ packages/server/src/routes/tts.routes.ts (+181 -0)
📝 packages/shared/src/index.ts (+1 -0)
➕ packages/shared/src/types/tts.ts (+30 -0)

📄 Description

Why this change

Added text to speech feature with any open API compliant provider for a more immersive narrative experience.

What changed

  1. Added TTS settings in the connections tab
  2. Add UI elements for speech in the chat area

Validation

  • pnpm check
  • Manual verification completed (describe below)

Manual verification notes

  1. Tested the feature with Kokoro-FastAPI.
  2. Tested the auto play and voice speed.

Docs and release impact

  • Updated doc CHANGELOG

UI evidence (if applicable)

UI showing speak button UI showing TTS settings and placement

Summary by CodeRabbit

Release Notes

  • New Features
    • Added text-to-speech (TTS) functionality with per-message speak controls and loading feedback
    • Introduced TTS settings panel with dynamic voice selection and speed controls
    • Added autoplay option to automatically speak assistant messages in Roleplay, Conversation, and Game modes
    • TTS settings now auto-save during edits without manual save required

🔄 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/201 **Author:** [@Javedz678](https://github.com/Javedz678) **Created:** 4/23/2026 **Status:** ✅ Merged **Merged:** 4/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`eacb8b5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eacb8b572b0672739cba7b0d0a96416148a8f487) feat/Add text to speech feature - [`b05d613`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b05d61339cd98b54a52d5ee7dcd7effd4a7bfaca) Added TTS to changelog ### 📊 Changes **11 files changed** (+912 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+9 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+35 -0) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+67 -1) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+5 -0) ➕ `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+410 -0) ➕ `packages/client/src/hooks/use-tts.ts` (+48 -0) ➕ `packages/client/src/lib/tts-service.ts` (+124 -0) 📝 `packages/server/src/routes/index.ts` (+2 -0) ➕ `packages/server/src/routes/tts.routes.ts` (+181 -0) 📝 `packages/shared/src/index.ts` (+1 -0) ➕ `packages/shared/src/types/tts.ts` (+30 -0) </details> ### 📄 Description ## Why this change Added text to speech feature with any open API compliant provider for a more immersive narrative experience. ## What changed 1. Added TTS settings in the connections tab 2. Add UI elements for speech in the chat area ## Validation - [x] `pnpm check` - [x] Manual verification completed (describe below) ### Manual verification notes 1. Tested the feature with Kokoro-FastAPI. 2. Tested the auto play and voice speed. ## Docs and release impact - [x] Updated doc CHANGELOG ## UI evidence (if applicable) <img width="1919" height="503" alt="UI showing speak button" src="https://github.com/user-attachments/assets/b6090180-7828-4560-a591-628ba7fb6e93" /> <img width="1918" height="946" alt="UI showing TTS settings and placement" src="https://github.com/user-attachments/assets/46a2f7b4-c49d-40d0-bec5-48debb124884" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added text-to-speech (TTS) functionality with per-message speak controls and loading feedback * Introduced TTS settings panel with dynamic voice selection and speed controls * Added autoplay option to automatically speak assistant messages in Roleplay, Conversation, and Game modes * TTS settings now auto-save during edits without manual save required <!-- 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-22 04:08:12 +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#4503
No description provided.