[GH-ISSUE #5145] Game setup wizard: per-game opt-in for generated music & sound effects, gated on ElevenLabs capability #2846

Closed
opened 2026-10-21 05:56:46 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @kolacheee on GitHub.

The problem

The engine can already generate game music and sound effects — ElevenLabs music (30-second instrumental clips) and sound-generation, cached by prompt hash, produced per-turn when the scene analyzer emits generation prompts. But the switches (elevenLabsGameMusic, elevenLabsGameSoundEffects) live in the global TTS settings, invisible at game creation: a player setting up a game has no idea generated audio exists, and no way to choose it per game. Every game inherits whatever the global blob says.

The ask

A Generated music & sound effects toggle in the setup wizard's Features step, alongside Visual Generation and Music DJ:

  • Grayed out, with a short explanation, when the instance cannot generate audio — capability today means the TTS configuration has ElevenLabs as its source with an API key present (note: this is deliberately the TTS settings blob, not a Connections row — the connections model has no audio provider type, and introducing one is a larger refactor that should be its own decision).
  • When available: on/off per game, defaulting from the current global flags, stored in the chat's setup config like the other feature toggles.
  • The per-game flag then gates the scene analyzer's generation-prompt mode and the /api/tts/game-audio route for that chat, with the global setting remaining the instance-wide capability switch.

This is surfacing + scoping of shipped machinery, not a new generation pipeline.

Originally created by @kolacheee on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5145 Originally assigned to: @kolacheee on GitHub. ### The problem The engine can already *generate* game music and sound effects — ElevenLabs music (30-second instrumental clips) and sound-generation, cached by prompt hash, produced per-turn when the scene analyzer emits generation prompts. But the switches (`elevenLabsGameMusic`, `elevenLabsGameSoundEffects`) live in the **global TTS settings**, invisible at game creation: a player setting up a game has no idea generated audio exists, and no way to choose it per game. Every game inherits whatever the global blob says. ### The ask A **Generated music & sound effects** toggle in the setup wizard's Features step, alongside Visual Generation and Music DJ: - **Grayed out, with a short explanation, when the instance cannot generate audio** — capability today means the TTS configuration has ElevenLabs as its source with an API key present (note: this is deliberately the TTS settings blob, not a Connections row — the connections model has no audio provider type, and introducing one is a larger refactor that should be its own decision). - When available: on/off per game, defaulting from the current global flags, stored in the chat's setup config like the other feature toggles. - The per-game flag then gates the scene analyzer's generation-prompt mode and the `/api/tts/game-audio` route for that chat, with the global setting remaining the instance-wide capability switch. This is surfacing + scoping of shipped machinery, not a new generation pipeline.
Author
Owner

@kolacheee commented on GitHub (Aug 16, 2026):

Closing as superseded, per maintainer direction: the toggle as specced here gated on the global TTS settings blob, and we are not building on that workaround. The prerequisite is now #5146 — first-class audio connections with per-capability detection (speech / sound effects / music).

Recording the design direction for the revisit once #5146 lands, so it isn't lost: the current generation model (per-turn mood prompts producing 30-second clips, cached by prompt hash) is the wrong shape for game music — music should not churn with every mood swing. The intended model is persistent, context-bound tracks: a track per map/area, and per enemy tier (common encounters vs miniboss vs boss vs special), generated once, stored in the game-assets library, and selected during play by context — generation feeding the library rather than replacing it. Sound effects remain closer to the current on-demand shape. The revisit issue should be written fresh against that model rather than reviving this spec.

<!-- gh-comment-id:5308111217 --> @kolacheee commented on GitHub (Aug 16, 2026): Closing as superseded, per maintainer direction: the toggle as specced here gated on the global TTS settings blob, and we are not building on that workaround. The prerequisite is now #5146 — first-class audio connections with per-capability detection (speech / sound effects / music). Recording the design direction for the revisit once #5146 lands, so it isn't lost: the current generation model (per-turn mood prompts producing 30-second clips, cached by prompt hash) is the wrong shape for game music — music should not churn with every mood swing. The intended model is **persistent, context-bound tracks**: a track per map/area, and per enemy tier (common encounters vs miniboss vs boss vs special), generated once, stored in the game-assets library, and *selected* during play by context — generation feeding the library rather than replacing it. Sound effects remain closer to the current on-demand shape. The revisit issue should be written fresh against that model rather than reviving this spec.
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#2846
No description provided.