[GH-ISSUE #8638] [Issue]: Roleplay speaker extractor does not reuse voices for NPC character cards #8437

Closed
opened 2026-11-07 16:42:57 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The Roleplay speaker extractor does not detect an existing voice assignment when an NPC's extracted speaker name differs from the corresponding character card name. As a result, NPC dialogue may not play.

Expected behavior

The speaker extractor should recognize an NPC as the matching character card, such as mapping "Junpei" to "Junpei Iori", and use that card's assigned voice even when the card is not the currently active roleplay card.

Actual behavior

Junpei Iori has a voice assigned through his card, but the extractor identifies the NPC only as "Junpei" and does not use the assigned voice. The dialogue is consequently not played or is skipped. This occurs with the user's persona cards except Aigis, whose extracted name exactly matches her card name.

Steps to reproduce

  1. Assign a voice to a character card named "Junpei Iori".
  2. Use a roleplay with another card, such as Yukari Takeba, as the only active card.
  3. Have Junpei Iori appear and speak as an NPC.
  4. Observe that the speaker extractor identifies him as "Junpei" instead of "Junpei Iori" and does not play the assigned voice or the dialogue.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No logs, screenshots, or video files were provided as text, but two screenshots were attached: https://cdn.discordapp.com/attachments/1566378415844753488/1566378416305864765/jw0jhhj.png and https://cdn.discordapp.com/attachments/1566378415844753488/1566378417002123335/7418k90.png. An additional attachment was posted without text: https://cdn.discordapp.com/attachments/1566378415844753488/1566378803771613184/1nv7pvk.png

Additional context

The issue affects all of the user's persona cards except Aigis because the extractor identifies Aigis by the exact card name. Yukari Takeba's dialogue plays correctly when she is the active card and assigned in the TTS connection. Support Diagnostics and agent version were not provided.

Discord thread: [Text to Speech] Check if a NPC already has a character/persona voice assigned.
Discord thread link: https://discord.com/channels/1417099416812392641/1566378415844753488
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-11-01T09:08:36.241Z] Umi: As is, the Roleplay speaker extractor only applies speaker tags to the card you're currently using and is unable to check if you already have a voice that'd fit with other NPC characters, even if you already assigned one to a card with his name.

That is to say, I already have a voice assigned to 'Junpei Iori' via his card. (Image 1)

Because Speaker Extractor only treats him as "Junpei" (Image 2) because he's acting as an NPC and not a standalone card, the voice doesn't play, and his dialogue is otherwise not played or skipped.

This happens with all of my persona cards except Aigis, because Speaker extractor identifies her as only "Aigis", and that matches the name of the card *exactly*.

[attached image 1: https://cdn.discordapp.com/attachments/1566378415844753488/1566378416305864765/jw0jhhj.png?ex=6ae85314&is=6ae70194&hm=c9ae9ad4ad1ad8af323cf72a09d16e0c54a25e72430cf62af13059f543e9c92c&]
[attached image 2: https://cdn.discordapp.com/attachments/1566378415844753488/1566378417002123335/7418k90.png?ex=6ae85314&is=6ae70194&hm=eec6f6bd4ac5fb893d4ae8622d543ff6eae32a1f847f936e751a60c68b661469&]
[Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378415844753488]

[2026-11-01T09:08:37.700Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378421964111973]

[2026-11-01T09:09:33.755Z] Umi: To clarify: At this moment the only card active in this roleplay is Yukari Takeba, so her dialogue plays just fine, as she is assigned in my TTS connection
[Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378657075830895]

[2026-11-01T09:10:08.746Z] Umi: (no text content)

[attached image 1: https://cdn.discordapp.com/attachments/1566378415844753488/1566378803771613184/1nv7pvk.png?ex=6ae85370&is=6ae701f0&hm=9bbc5eddd3285b026e960da18de678dc4bbc6b8ee2d67cc4867d711e3b0bb52f&]
[Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378803838713900]

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 (Nov 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8638 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The Roleplay speaker extractor does not detect an existing voice assignment when an NPC's extracted speaker name differs from the corresponding character card name. As a result, NPC dialogue may not play. ## Expected behavior The speaker extractor should recognize an NPC as the matching character card, such as mapping "Junpei" to "Junpei Iori", and use that card's assigned voice even when the card is not the currently active roleplay card. ## Actual behavior Junpei Iori has a voice assigned through his card, but the extractor identifies the NPC only as "Junpei" and does not use the assigned voice. The dialogue is consequently not played or is skipped. This occurs with the user's persona cards except Aigis, whose extracted name exactly matches her card name. ## Steps to reproduce 1. Assign a voice to a character card named "Junpei Iori". 2. Use a roleplay with another card, such as Yukari Takeba, as the only active card. 3. Have Junpei Iori appear and speak as an NPC. 4. Observe that the speaker extractor identifies him as "Junpei" instead of "Junpei Iori" and does not play the assigned voice or the dialogue. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video files were provided as text, but two screenshots were attached: https://cdn.discordapp.com/attachments/1566378415844753488/1566378416305864765/jw0jhhj.png and https://cdn.discordapp.com/attachments/1566378415844753488/1566378417002123335/7418k90.png. An additional attachment was posted without text: https://cdn.discordapp.com/attachments/1566378415844753488/1566378803771613184/1nv7pvk.png ## Additional context The issue affects all of the user's persona cards except Aigis because the extractor identifies Aigis by the exact card name. Yukari Takeba's dialogue plays correctly when she is the active card and assigned in the TTS connection. Support Diagnostics and agent version were not provided. Discord thread: [Text to Speech] Check if a NPC already has a character/persona voice assigned. Discord thread link: https://discord.com/channels/1417099416812392641/1566378415844753488 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-11-01T09:08:36.241Z] Umi: As is, the Roleplay speaker extractor only applies speaker tags to the card you're currently using and is unable to check if you already have a voice that'd fit with other NPC characters, even if you already assigned one to a card with his name. That is to say, I already have a voice assigned to 'Junpei Iori' via his card. (Image 1) Because Speaker Extractor only treats him as "Junpei" (Image 2) because he's acting as an NPC and not a standalone card, the voice doesn't play, and his dialogue is otherwise not played or skipped. This happens with all of my persona cards except Aigis, because Speaker extractor identifies her as only "Aigis", and that matches the name of the card *exactly*. [attached image 1: https://cdn.discordapp.com/attachments/1566378415844753488/1566378416305864765/jw0jhhj.png?ex=6ae85314&is=6ae70194&hm=c9ae9ad4ad1ad8af323cf72a09d16e0c54a25e72430cf62af13059f543e9c92c&] [attached image 2: https://cdn.discordapp.com/attachments/1566378415844753488/1566378417002123335/7418k90.png?ex=6ae85314&is=6ae70194&hm=eec6f6bd4ac5fb893d4ae8622d543ff6eae32a1f847f936e751a60c68b661469&] [Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378415844753488] [2026-11-01T09:08:37.700Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378421964111973] [2026-11-01T09:09:33.755Z] Umi: To clarify: At this moment the only card active in this roleplay is Yukari Takeba, so her dialogue plays just fine, as she is assigned in my TTS connection [Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378657075830895] [2026-11-01T09:10:08.746Z] Umi: (no text content) [attached image 1: https://cdn.discordapp.com/attachments/1566378415844753488/1566378803771613184/1nv7pvk.png?ex=6ae85370&is=6ae701f0&hm=9bbc5eddd3285b026e960da18de678dc4bbc6b8ee2d67cc4867d711e3b0bb52f&] [Discord message: https://discord.com/channels/1417099416812392641/1566378415844753488/1566378803838713900] ``` </details> ## 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.
bsakaguchi 2026-11-07 16:42:57 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Nov 1, 2026):

Fixed in #8650, merged into staging: a speaker the extractor names by part of a card's name ("Junpei" for "Junpei Iori") now uses that card's voice, even when the card isn't in the chat. A name that fits two cards in the chat never borrows an outside card's voice.

<!-- gh-comment-id:6563279871 --> @SpicyMarinara commented on GitHub (Nov 1, 2026): Fixed in #8650, merged into `staging`: a speaker the extractor names by part of a card's name ("Junpei" for "Junpei Iori") now uses that card's voice, even when the card isn't in the chat. A name that fits two cards in the chat never borrows an outside card's voice.
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#8437
No description provided.