mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5054] [Feature]: Extract Roleplay speakers for per-character TTS autoplay #2796
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2796
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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