[GH-ISSUE #1177] [Feature]: Game Mode: generate stable NPC voices with a Voice Design → Clone pipeline #599

Closed
opened 2026-10-20 17:28:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @palinalif on GitHub (Oct 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1177

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Game Mode can generate a large number of NPCs, but giving those NPCs distinct voices currently requires either choosing from a fixed pool of existing voices or manually creating/uploading a voice for them.

That works for important hand-authored characters, but not for NPC #13443 who randomly shouted at my player character and will never appear again (good riddance tbh).

Voice-design models solve half of this problem: given a description, they can create an appropriate synthetic voice. Voice-cloning models solve the other half: given reference audio, they can reproduce that voice consistently, making the result feel more real. This is in fact a recommended approach by Qwen3TTS!

Connecting those two steps would let Marinara create a stable voice for generated NPCs automatically:

Proposed package or change

Add an optional Voice Design → Clone pipeline for generated Game Mode NPCs.

When an NPC needs a voice and does not already have one:

  1. Derive or generate a concise voice description from the NPC's existing character information.
  2. Send that description to a configured Voice Design model.
  3. Generate a clean reference sample suitable for voice enrollment/cloning.
  4. Pass that sample to the configured cloning-capable TTS backend, or store it directly as reference audio if the backend supports zero-shot reference-audio synthesis.
  5. Save the resulting voice identity against that NPC.
  6. Reuse the same voice whenever that NPC speaks again.

The generated voice should be stable and cached. Revisiting the same NPC should never redesign their voice on every line or every session.

Ideally the system should be capability-based rather than tied to one provider:

  • If the TTS backend accepts reference audio directly, keep and reuse the generated reference clip.
  • If it requires an enrolled/cloned voice ID, enroll it once and save that mapping.
  • If a backend supports text-described voices directly, it may be able to skip the clone step entirely.
  • If none of these capabilities are available, fall back to the existing random NPC voice pool or default voice.

The Voice Design stage should be lazy/on-demand so a generated world does not create hundreds of voices for NPCs the player never meets.

If characters gain first-class Voice metadata in a separate character-card feature, promoted or persistent NPCs should use the same underlying voice representation where practical.

Why should this be optional?

Voice generation can consume additional provider requests, storage, and potentially paid API usage.

Players who prefer the current random voice pools, use a simple fixed TTS voice, or do not use TTS at all should see no behavioral change.

The pipeline should only run when explicitly enabled and when compatible Voice Design and TTS capabilities are configured.

Alternatives considered

  • Continue assigning random voices from a fixed pool. This is cheap and already works, but large worlds inevitably reuse the same voices and the result cannot reflect the NPC's individual identity.
  • Require users to upload clone references manually. This works for important characters but is impractical for generated NPCs.
  • Generate a new designed voice every time the NPC speaks. This avoids cloning, but voice identity would drift and would repeatedly spend generation requests. Plus, voice cloning models are generally much faster and cheaper than voice design models.
  • Pre-generate voices for every NPC during world creation. Most generated NPCs may never speak to the player, making this unnecessarily expensive and slow.

A lazy, cached Voice Design → Clone pipeline gives generated NPCs persistent voice identity without turning world generation into a voice-generation batch job.

Additional context

Game Mode already has stable random NPC voice assignment from configured male/female voice pools. This request would build on that idea rather than replace it.

Marinara also already distinguishes voice-design models from speech-capable TTS models in its TTS integration. The missing piece is using a voice-design model as an upstream voice-creation step instead of attempting to use it directly for speech.

This would pair naturally with a separate proposal for a Voice tab on character cards, where named characters can store reference audio and/or a textual voice description.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @palinalif on GitHub (Oct 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1177 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Game Mode can generate a large number of NPCs, but giving those NPCs distinct voices currently requires either choosing from a fixed pool of existing voices or manually creating/uploading a voice for them. That works for important hand-authored characters, but not for NPC #13443 who randomly shouted at my player character and will never appear again (good riddance tbh). Voice-design models solve half of this problem: given a description, they can create an appropriate synthetic voice. Voice-cloning models solve the other half: given reference audio, they can reproduce that voice _consistently_, making the result feel more real. This is in fact a recommended approach by Qwen3TTS! Connecting those two steps would let Marinara create a stable voice for generated NPCs automatically: ## Proposed package or change Add an optional **Voice Design → Clone** pipeline for generated Game Mode NPCs. When an NPC needs a voice and does not already have one: 1. Derive or generate a concise **voice description** from the NPC's existing character information. 2. Send that description to a configured **Voice Design** model. 3. Generate a clean reference sample suitable for voice enrollment/cloning. 4. Pass that sample to the configured cloning-capable TTS backend, or store it directly as reference audio if the backend supports zero-shot reference-audio synthesis. 5. Save the resulting voice identity against that NPC. 6. Reuse the same voice whenever that NPC speaks again. The generated voice should be **stable and cached**. Revisiting the same NPC should never redesign their voice on every line or every session. Ideally the system should be capability-based rather than tied to one provider: - If the TTS backend accepts reference audio directly, keep and reuse the generated reference clip. - If it requires an enrolled/cloned voice ID, enroll it once and save that mapping. - If a backend supports text-described voices directly, it may be able to skip the clone step entirely. - If none of these capabilities are available, fall back to the existing random NPC voice pool or default voice. The Voice Design stage should be lazy/on-demand so a generated world does not create hundreds of voices for NPCs the player never meets. If characters gain first-class Voice metadata in a separate character-card feature, promoted or persistent NPCs should use the same underlying voice representation where practical. ## Why should this be optional? Voice generation can consume additional provider requests, storage, and potentially paid API usage. Players who prefer the current random voice pools, use a simple fixed TTS voice, or do not use TTS at all should see no behavioral change. The pipeline should only run when explicitly enabled and when compatible Voice Design and TTS capabilities are configured. ## Alternatives considered - **Continue assigning random voices from a fixed pool.** This is cheap and already works, but large worlds inevitably reuse the same voices and the result cannot reflect the NPC's individual identity. - **Require users to upload clone references manually.** This works for important characters but is impractical for generated NPCs. - **Generate a new designed voice every time the NPC speaks.** This avoids cloning, but voice identity would drift and would repeatedly spend generation requests. Plus, voice cloning models are generally much faster and cheaper than voice design models. - **Pre-generate voices for every NPC during world creation.** Most generated NPCs may never speak to the player, making this unnecessarily expensive and slow. A lazy, cached Voice Design → Clone pipeline gives generated NPCs persistent voice identity without turning world generation into a voice-generation batch job. ## Additional context Game Mode already has stable random NPC voice assignment from configured male/female voice pools. This request would build on that idea rather than replace it. Marinara also already distinguishes voice-design models from speech-capable TTS models in its TTS integration. The missing piece is using a voice-design model as an upstream voice-creation step instead of attempting to use it directly for speech. This would pair naturally with a separate proposal for a **Voice tab on character cards**, where named characters can store reference audio and/or a textual voice description. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:55 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 2, 2026):

Thanks for this one too! It's really well thought out, and voices for made-up NPCs don't raise the worries that clips on shared cards did. We're still going to pass on it for now, for practical reasons:

  • The two halves live on different services. Of the TTS services Marinara supports, only ElevenLabs does voice design, and only PocketTTS clones from a clip, so the pipeline would chain a paid cloud step into a local one. Qwen3-TTS isn't supported at the moment.
  • Every designed voice costs ElevenLabs credits, and saved voices use up the account's limited voice slots, so a busy world would fill them. Removing NPCs would then leave orphaned voices in the account, or clips on disk.
  • It's a lot of new pieces (capability checks, a stored clip per NPC, enrolling, caching, fallbacks, spending limits) so that an NPC who shouts once gets a voice of their own. It would also lean on clone audio stored with characters, which we decided against in #1176.

Random NPC Voices already gives every NPC a stable pick from the male and female pools, so if you want more variety today, add more voices to those pools. Each NPC keeps the same pick.

What would change our minds is support for a service that can both design and clone voices by itself, like Qwen3-TTS. That would make a lazy, cached voice per NPC much cheaper, and we'd be happy to look at this again then. Closing as not planned for now.

<!-- gh-comment-id:5962816831 --> @SpicyMarinara commented on GitHub (Oct 2, 2026): Thanks for this one too! It's really well thought out, and voices for made-up NPCs don't raise the worries that clips on shared cards did. We're still going to pass on it for now, for practical reasons: - The two halves live on different services. Of the TTS services Marinara supports, only ElevenLabs does voice design, and only PocketTTS clones from a clip, so the pipeline would chain a paid cloud step into a local one. Qwen3-TTS isn't supported at the moment. - Every designed voice costs ElevenLabs credits, and saved voices use up the account's limited voice slots, so a busy world would fill them. Removing NPCs would then leave orphaned voices in the account, or clips on disk. - It's a lot of new pieces (capability checks, a stored clip per NPC, enrolling, caching, fallbacks, spending limits) so that an NPC who shouts once gets a voice of their own. It would also lean on clone audio stored with characters, which we decided against in #1176. **Random NPC Voices** already gives every NPC a stable pick from the male and female pools, so if you want more variety today, add more voices to those pools. Each NPC keeps the same pick. What would change our minds is support for a service that can both design and clone voices by itself, like Qwen3-TTS. That would make a lazy, cached voice per NPC much cheaper, and we'd be happy to look at this again then. Closing as not planned for now.
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-Agents#599
No description provided.