mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1144] TTS: route quoted dialogue to character voice and prose to narrator voice automatically #565
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#565
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 @etherious1804 on GitHub (May 24, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1144
Problem
When
narratorVoiceEnabledis configured with single-voice mode and no<speaker>tags in the model output, the entire reply currently plays in the character's voice. The configured narrator voice is unused — there's no path that distinguishes "this paragraph is action prose" from "this is what the character actually says."The result: users who set up a separate narrator voice (intending a novel-style narrator-reads-the-action, character-speaks-the-dialogue split) hear a single voice reading every word, including action prose like "She steps closer, fingertips tracing his jaw." The narrator voice is configured but never selected.
Roleplay convention is already well-established:
"..."is speech, surrounding prose is narration. We can act on this convention without requiring model-side structured tags.Proposed feature
When
narratorVoiceEnabled === trueANDvoiceMode === "single"AND there are no<speaker>tags in the text:"...",""..."",«...»,「...」,『...』) as dialogue routed to the character voice.Applies to both on-demand speaker-icon playback and the streaming-TTS path.
Sentence-chunker dependency
The streaming-TTS sentence chunker needs to become quote-aware: a multi-sentence quoted block like
"Hello. How are you. I am fine."must emit as one chunk (at the closing quote), otherwise mid-quote sentence ends fragment the dialogue into pieces with unbalanced quotes that the splitter can't classify. Pieces with unbalanced quotes currently fall through to all-narrator routing — the visible symptom being that the whole reply plays in the narrator voice when streaming a dialogue-heavy reply.UX edge cases
narratorVoiceEnabledoff — no behavior change; single-voice mode continues to play everything in the character voice.[Speaker]:lines — untouched; that path usesextractDialogueUtterancesinstead.@cha1latte commented on GitHub (May 25, 2026):
Triage note: labeling this as
normal-scopebecause quoted-dialogue narration routing extends the existing TTS narrator setting rather than adding a separate workflow.The least risky next step is to keep the implementation bounded to quote-aware splitting and existing narrator/character voice modes.
@cha1latte commented on GitHub (May 26, 2026):
fixed in #1255