[PR #5057] [MERGED] Add Roleplay speaker TTS and expand Haptic support #6607

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5057
Author: @SpicyMarinara
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/roleplay-speaker-extractor


📝 Commits (3)

  • b3cb92d feat: add roleplay speaker TTS and expand haptics
  • e2975fa fix: address TTS and haptic review feedback
  • e0c8243 fix: expose haptic settings in conversation

📊 Changes

28 files changed (+1301 additions, -484 deletions)

View changed files

📝 CHANGELOG.md (+3 -0)
📝 docs/agents/built-in-agents.md (+2 -2)
📝 docs/integrations/haptic-feedback.md (+17 -11)
📝 package.json (+2 -1)
📝 packages/client/src/components/chat/AgentAddSetupFields.tsx (+78 -49)
📝 packages/client/src/components/chat/ChatArea.tsx (+65 -13)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+100 -121)
➕ packages/client/src/components/chat/haptic-sensitivity-options.ts (+23 -0)
📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+149 -50)
➕ packages/client/src/lib/tts-roleplay-speaker-extractor.ts (+79 -0)
📝 packages/client/src/localization/locales/en.json (+17 -2)
📝 packages/client/src/localization/locales/ko.json (+0 -1)
📝 packages/server/src/routes/generate.routes.ts (+22 -15)
📝 packages/server/src/routes/tts.routes.ts (+220 -12)
📝 packages/server/src/services/agents/agent-executor.ts (+12 -3)
📝 packages/server/src/services/agents/default-prompt-migration.ts (+4 -1)
📝 packages/server/src/services/conversation/character-commands.ts (+23 -13)
📝 packages/server/src/services/generation/conversation-command-runtime.ts (+17 -8)
📝 packages/server/src/services/generation/haptic-command-runtime.ts (+9 -2)
📝 packages/server/src/services/generation/haptic-runtime.ts (+130 -52)

...and 8 more files

📄 Description

Linked issue

Closes #5054
Closes #5055

Related translation follow-up: #5056

Why this change

Merged Narrator and multi-character Roleplay replies could only autoplay through one voice, even when character voices were assigned. Haptic Feedback also exposed only part of the connected device's capabilities: intensity was silently capped, prompts preferred vibration, patterns were dropped for positional actions, and availability differed by chat mode.

What changed

  • Added an optional Roleplay speaker extractor under TTS autoplay, with a selectable language-model connection that defaults to the default Agent connection.
  • Preserved exact generated dialogue and narration order, queued playback per speaker, routed known names such as Columbina to assigned voices, and added stable Random NPC Voices fallback before the global voice.
  • Added optional emotion indicators and narrator routing while respecting Only read dialogues.
  • Reshaped character voice assignments into readable stacked controls, removed redundant hollow dropdown controls, and used semantic theme colors for empty guidance.
  • Enabled Haptic Feedback in Conversation, Roleplay, and Game with exact device name/type/action context, full 0.0-1.0 intensity, expanded Intiface actions and aliases, and named patterns for scalar and positional pumping commands.
  • Updated English documentation, localization, changelog entries, and deterministic TTS/Haptic regressions.

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

Automated verification completed:

  • pnpm check
  • pnpm regression:tts
  • pnpm regression:haptic
  • pnpm localization:check
  • git diff --check

The production client/server builds completed. The in-app browser was unavailable for a final visual click-through. No physical Intiface device was connected, so hardware output intensity, action, and pattern behavior still requires manual verification.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) 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)

English Haptic documentation and CHANGELOG.md are updated. Translation follow-up #5056 is open. No version bump is included.

UI evidence (if applicable)

The reported character-voice layout showed redundant hollow trailing dropdown controls. The component now omits those controls in compact character/voice selectors while retaining the explicit remove button. An after screenshot remains a manual review item because the in-app browser was unavailable.

Risk and proof boundary

  • Prompt and provider routing: current and legacy TTS configuration paths are covered by the TTS regression.
  • Haptic execution: normalization, all-mode policy, full-range intensity, aliases, and positional pattern sequences are covered deterministically.
  • Physical Intiface hardware behavior and final desktop/mobile visual appearance remain manual proof gaps.

Summary by CodeRabbit

  • New Features
    • Expanded haptic feedback to Conversation, Roleplay, and Game chats with additional device actions, patterns, and capability details.
    • Added optional roleplay speaker extraction for TTS autoplay, including narrator/dialogue voice assignment and emotion indicators.
    • Added controls for selecting the speaker-extraction connection.
    • Added an Advanced Settings option to remove confirmed-unused avatar images.
  • Bug Fixes
    • Improved character voice-assignment controls and empty-character guidance.
  • Documentation
    • Updated haptic feedback guides with supported devices, actions, sensitivity behavior, and chat modes.

🔄 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/5057 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/15/2026 **Status:** ✅ Merged **Merged:** 8/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/roleplay-speaker-extractor` --- ### 📝 Commits (3) - [`b3cb92d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b3cb92d2dea2e38ac3c5f01f98502293e7bc29a8) feat: add roleplay speaker TTS and expand haptics - [`e2975fa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e2975fa11bee66a28c9f8c9c30eb8834e9f99be5) fix: address TTS and haptic review feedback - [`e0c8243`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e0c82438db6e8d15d4ec5e855816b9f3200e49fd) fix: expose haptic settings in conversation ### 📊 Changes **28 files changed** (+1301 additions, -484 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+3 -0) 📝 `docs/agents/built-in-agents.md` (+2 -2) 📝 `docs/integrations/haptic-feedback.md` (+17 -11) 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/chat/AgentAddSetupFields.tsx` (+78 -49) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+65 -13) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+100 -121) ➕ `packages/client/src/components/chat/haptic-sensitivity-options.ts` (+23 -0) 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+149 -50) ➕ `packages/client/src/lib/tts-roleplay-speaker-extractor.ts` (+79 -0) 📝 `packages/client/src/localization/locales/en.json` (+17 -2) 📝 `packages/client/src/localization/locales/ko.json` (+0 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+22 -15) 📝 `packages/server/src/routes/tts.routes.ts` (+220 -12) 📝 `packages/server/src/services/agents/agent-executor.ts` (+12 -3) 📝 `packages/server/src/services/agents/default-prompt-migration.ts` (+4 -1) 📝 `packages/server/src/services/conversation/character-commands.ts` (+23 -13) 📝 `packages/server/src/services/generation/conversation-command-runtime.ts` (+17 -8) 📝 `packages/server/src/services/generation/haptic-command-runtime.ts` (+9 -2) 📝 `packages/server/src/services/generation/haptic-runtime.ts` (+130 -52) _...and 8 more files_ </details> ### 📄 Description ## Linked issue Closes #5054 Closes #5055 Related translation follow-up: #5056 ## Why this change Merged Narrator and multi-character Roleplay replies could only autoplay through one voice, even when character voices were assigned. Haptic Feedback also exposed only part of the connected device's capabilities: intensity was silently capped, prompts preferred vibration, patterns were dropped for positional actions, and availability differed by chat mode. ## What changed - Added an optional **Roleplay speaker extractor** under TTS autoplay, with a selectable language-model connection that defaults to the default Agent connection. - Preserved exact generated dialogue and narration order, queued playback per speaker, routed known names such as Columbina to assigned voices, and added stable Random NPC Voices fallback before the global voice. - Added optional emotion indicators and narrator routing while respecting **Only read dialogues**. - Reshaped character voice assignments into readable stacked controls, removed redundant hollow dropdown controls, and used semantic theme colors for empty guidance. - Enabled Haptic Feedback in Conversation, Roleplay, and Game with exact device name/type/action context, full `0.0-1.0` intensity, expanded Intiface actions and aliases, and named patterns for scalar and positional pumping commands. - Updated English documentation, localization, changelog entries, and deterministic TTS/Haptic regressions. ## 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 Automated verification completed: - `pnpm check` - `pnpm regression:tts` - `pnpm regression:haptic` - `pnpm localization:check` - `git diff --check` The production client/server builds completed. The in-app browser was unavailable for a final visual click-through. No physical Intiface device was connected, so hardware output intensity, action, and pattern behavior still requires manual verification. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) 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) English Haptic documentation and `CHANGELOG.md` are updated. Translation follow-up #5056 is open. No version bump is included. ## UI evidence (if applicable) The reported character-voice layout showed redundant hollow trailing dropdown controls. The component now omits those controls in compact character/voice selectors while retaining the explicit remove button. An after screenshot remains a manual review item because the in-app browser was unavailable. ## Risk and proof boundary - Prompt and provider routing: current and legacy TTS configuration paths are covered by the TTS regression. - Haptic execution: normalization, all-mode policy, full-range intensity, aliases, and positional pattern sequences are covered deterministically. - Physical Intiface hardware behavior and final desktop/mobile visual appearance remain manual proof gaps. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Expanded haptic feedback to Conversation, Roleplay, and Game chats with additional device actions, patterns, and capability details. * Added optional roleplay speaker extraction for TTS autoplay, including narrator/dialogue voice assignment and emotion indicators. * Added controls for selecting the speaker-extraction connection. * Added an Advanced Settings option to remove confirmed-unused avatar images. * **Bug Fixes** * Improved character voice-assignment controls and empty-character guidance. * **Documentation** * Updated haptic feedback guides with supported devices, actions, sensitivity behavior, and chat modes. <!-- 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:12:01 +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#6607
No description provided.