mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5159] [Issue]: Roleplay speaker extractor must emit inline bracketed emotion indicators #2855
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#2855
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 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5159
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Roleplay speaker extractor's Enable emotion indicators implementation does not match the intended behavior. It currently asks for one optional
toneper dialogue line, but emotion indicators are supposed to be bracketed cues inserted directly into the dialogue text sent to TTS, including multiple cues at different positions within one line.Expected behavior
When emotion indicators are enabled, add this instruction to the extractor prompt:
The prompt example must demonstrate inline bracketed indicators, including multiple indicators in one dialogue line:
Requirements:
[irritated],[sigh],[pause], and[chuckle]must be embedded at their intended positions in the dialogue sent to TTS.tonevalue for the whole line.Actual behavior
buildRoleplaySpeakerExtractorPrompt()currently requests:The JSON example provides only one
tonefor each entire line.parseRoleplaySpeakerExtractorOutput()then places that value on the dialogue segment astone, and the downstream request path treats it as a single overall delivery instruction or leading cue. This loses the intended inline placement and cannot express changing delivery, pauses, or sounds within a line.Steps to reproduce
tonevalue for the entire line instead of multiple inline bracketed indicators.Environment
Logs, screenshots, or video
Not applicable. The current behavior is visible in:
packages/server/src/routes/tts.routes.ts—buildRoleplaySpeakerExtractorPrompt()andparseRoleplaySpeakerExtractorOutput()packages/shared/src/types/tts.ts— the dialogue segment's optionaltonepackages/client/src/lib/tts-roleplay-speaker-extractor.ts— TTS job constructionAdditional context
This is a correction to the existing feature, not a request to enrich the current
tonefield. Thetonerepresentation is the implementation mistake being corrected.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: