[GH-ISSUE #5054] [Feature]: Extract Roleplay speakers for per-character TTS autoplay #2796

Closed
opened 2026-10-21 05:55:41 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5054

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Roleplay TTS autoplay cannot reliably use multiple voices when one generated message contains dialogue from several characters, such as chats using a merged Narrator card. Character voice assignment controls are also cramped and show redundant hollow dropdown controls.

Proposed solution

Add an optional Roleplay speaker extractor under TTS autoplay. After a Roleplay reply, run one short language-model call using a selected connection, defaulting to the default Agent connection, to extract exact dialogue lines and their speakers while preserving narration order.

Route recognized speakers to their assigned character voices. If a speaker has no assignment, use a stable voice from Random NPC Voices when enabled, then the global voice. Queue narration with the separate narrator voice when enabled and Only read dialogues is off. Optionally retain emotion indicators for providers that support them.

Keep character and voice assignment controls stacked, readable, and free of redundant trailing dropdown buttons.

Alternatives considered

Punctuation-only dialogue parsing cannot reliably identify speakers in multi-character prose. Requiring speaker tags in generated roleplay would place formatting constraints on models and existing chats.

Additional context

Engine implementation branch: feature/roleplay-speaker-extractor.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5054 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Roleplay TTS autoplay cannot reliably use multiple voices when one generated message contains dialogue from several characters, such as chats using a merged Narrator card. Character voice assignment controls are also cramped and show redundant hollow dropdown controls. ## Proposed solution Add an optional **Roleplay speaker extractor** under TTS autoplay. After a Roleplay reply, run one short language-model call using a selected connection, defaulting to the default Agent connection, to extract exact dialogue lines and their speakers while preserving narration order. Route recognized speakers to their assigned character voices. If a speaker has no assignment, use a stable voice from Random NPC Voices when enabled, then the global voice. Queue narration with the separate narrator voice when enabled and **Only read dialogues** is off. Optionally retain emotion indicators for providers that support them. Keep character and voice assignment controls stacked, readable, and free of redundant trailing dropdown buttons. ## Alternatives considered Punctuation-only dialogue parsing cannot reliably identify speakers in multi-character prose. Requiring speaker tags in generated roleplay would place formatting constraints on models and existing chats. ## Additional context Engine implementation branch: `feature/roleplay-speaker-extractor`. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#2796
No description provided.