[GH-ISSUE #5059] [Issue]: Roleplay speaker extractor can skip narration during TTS playback #2801

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Roleplay speaker extraction reconstructs the full message, but long messages with several narration paragraphs can be read only partially because the TTS queue starts all non-progressive audio-generation requests concurrently and silently skips failed chunks.

Expected behavior

When Only read dialogues is disabled, every narration and dialogue segment from the generated Roleplay message should be spoken in source order. If a provider request fails, playback should report the failure instead of silently omitting that text.

Actual behavior

A tested Roleplay message retained its quoted Columbina dialogue but skipped several narration paragraphs, a markdown warning block, and the final countdown. The current non-progressive queue uses an unbounded Promise.all burst and filters failed requests out before playback.

Steps to reproduce

  1. Enable Text to Speech autoplay and Roleplay speaker extractor with Only read dialogues disabled.
  2. Generate a Roleplay response containing one dialogue line followed by many narration paragraphs and a markdown blockquote.
  3. Observe that only some generated audio chunks may play while failed chunks are omitted.

Environment

  • Marinara Engine version: staging after v2.4.3 / PR #5057
  • Install type: source
  • OS + version: macOS 10.15.7
  • Browser or app shell: Safari 26.6

Logs, screenshots, or video

No browser console log was captured. The reported omitted text includes ordinary narration, a three-line blockquote warning, and a final bold countdown.

Additional context

Reported while testing the Roleplay speaker extractor added in #5057. The narrow fix should reduce extractor narration request fragmentation, serialize non-progressive pre-generation, and stop treating failed chunks as safely skippable.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • 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/5059 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Roleplay speaker extraction reconstructs the full message, but long messages with several narration paragraphs can be read only partially because the TTS queue starts all non-progressive audio-generation requests concurrently and silently skips failed chunks. ## Expected behavior When Only read dialogues is disabled, every narration and dialogue segment from the generated Roleplay message should be spoken in source order. If a provider request fails, playback should report the failure instead of silently omitting that text. ## Actual behavior A tested Roleplay message retained its quoted Columbina dialogue but skipped several narration paragraphs, a markdown warning block, and the final countdown. The current non-progressive queue uses an unbounded Promise.all burst and filters failed requests out before playback. ## Steps to reproduce 1. Enable Text to Speech autoplay and Roleplay speaker extractor with Only read dialogues disabled. 2. Generate a Roleplay response containing one dialogue line followed by many narration paragraphs and a markdown blockquote. 3. Observe that only some generated audio chunks may play while failed chunks are omitted. ## Environment - Marinara Engine version: staging after v2.4.3 / PR #5057 - Install type: source - OS + version: macOS 10.15.7 - Browser or app shell: Safari 26.6 ## Logs, screenshots, or video No browser console log was captured. The reported omitted text includes ordinary narration, a three-line blockquote warning, and a final bold countdown. ## Additional context Reported while testing the Roleplay speaker extractor added in #5057. The narrow fix should reduce extractor narration request fragmentation, serialize non-progressive pre-generation, and stop treating failed chunks as safely skippable. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:55:45 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 15, 2026):

@SpicyMarinara is taking this regression fix.

<!-- gh-comment-id:5302327568 --> @SpicyMarinara commented on GitHub (Aug 15, 2026): @SpicyMarinara is taking this regression fix.
Author
Owner

@SpicyMarinara commented on GitHub (Aug 15, 2026):

Additional test feedback is now covered on PR #5060: TTS receives a finalized-assistant-message signal before Illustrator and other non-rewriting agents finish, while active text-rewrite agents remain a required barrier. The Roleplay speaker extractor input also now explicitly mentions json for Responses API structured-output compatibility.

<!-- gh-comment-id:5302453434 --> @SpicyMarinara commented on GitHub (Aug 15, 2026): Additional test feedback is now covered on PR #5060: TTS receives a finalized-assistant-message signal before Illustrator and other non-rewriting agents finish, while active text-rewrite agents remain a required barrier. The Roleplay speaker extractor input also now explicitly mentions `json` for Responses API structured-output compatibility.
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#2801
No description provided.