[GH-ISSUE #4120] [Feature]: use AI models to autogenerate sound and music assets in gm mode #2234

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

Originally created by @fastfinge on GitHub (Jul 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4120

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

The included sound effects and assets can become repetitive. However, services like elevenlabs can generate both music and sound effects to fit any game.

Proposed solution

Use the support for elevenlabs and nano-gpt to create agents that generate sounds and music. In order to keep prices down and responses fast, assets that are generated should be cached with the possibility of reuse.

Alternatives considered

I tried the YouTube music player, but the default sidecar model does a terrible job at picking songs. This evening it picked: a video essay about horror movies of the 1990's, some woman making sausages, and seven hours of white noise. When it's not being a little gremlin, it tends to pick music with lyrics, and I find that distracting, especially when I'm having elevenlabs voice my characters. The search queries it uses would honestly work well as elevenlabs prompts anyway.

Also, we could use freesound.org if we don't want AI generated sound effects; they have an API with search and tagging.

Additional context

I'd also love to have the ability to generate different sound effects based on what happens when I press next, and different looping backgrounds. I think I've heard that one door sound 538,569 times now. Similar for the footstep sound. And the morning birds.

I feel like if I was smarter, I could make these agents myself. Or have Claude make them, if I could figure out what to point it at. But I'm not quite smart enough.

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 @fastfinge on GitHub (Jul 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4120 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? <!-- Describe the pain point or gap this feature would address --> The included sound effects and assets can become repetitive. However, services like elevenlabs can generate both music and sound effects to fit any game. ## Proposed solution <!-- What would you like to see added or changed? --> Use the support for elevenlabs and nano-gpt to create agents that generate sounds and music. In order to keep prices down and responses fast, assets that are generated should be cached with the possibility of reuse. ## Alternatives considered <!-- Any other approaches you thought about? --> I tried the YouTube music player, but the default sidecar model does a terrible job at picking songs. This evening it picked: a video essay about horror movies of the 1990's, some woman making sausages, and seven hours of white noise. When it's not being a little gremlin, it tends to pick music with lyrics, and I find that distracting, especially when I'm having elevenlabs voice my characters. The search queries it uses would honestly work well as elevenlabs prompts anyway. Also, we could use freesound.org if we don't want AI generated sound effects; they have an API with search and tagging. ## Additional context <!-- Optional: mockups, related issues, references, or examples --> I'd also love to have the ability to generate different sound effects based on what happens when I press next, and different looping backgrounds. I think I've heard that one door sound 538,569 times now. Similar for the footstep sound. And the morning birds. I feel like if I was smarter, I could make these agents myself. Or have Claude make them, if I could figure out what to point it at. But I'm not quite smart enough. ## 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.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 26, 2026):

You can generate music and sound effects on ElevenLabs, download them, and plug them into the available assets in Game mode.

I can see they support generating sound effects and music via API, so I could add toggles in the TTS ElevenLabs Connection setting; one to use generated sound effects and one to use music (both can be on simultaneously). Having those on will replace using our default assets; the prompt for scene analysis call will change, removing the available assets, to mention the scene analysis may decide on any sound effects and a music choice and append them accordingly with scene transitions; e.g., if the user goes somewhere, the model may decide for sfx: "quiet footsteps". Now, we simply pass those sfx and music requests to ElevenLabs and hook them up to the scene accordingly. We should store these separately from the default assets and reuse the ones that were only generated (no need to generate quiet footsteps twice, we can just reuse what was already generated for normal footsteps too).

https://elevenlabs.io/docs/eleven-api/guides/cookbooks/music
https://elevenlabs.io/docs/eleven-api/guides/cookbooks/sound-effects

<!-- gh-comment-id:5082403896 --> @SpicyMarinara commented on GitHub (Jul 26, 2026): You can generate music and sound effects on ElevenLabs, download them, and plug them into the available assets in Game mode. I can see they support generating sound effects and music via API, so I could add toggles in the TTS ElevenLabs Connection setting; one to use generated sound effects and one to use music (both can be on simultaneously). Having those on will replace using our default assets; the prompt for scene analysis call will change, removing the available assets, to mention the scene analysis may decide on any sound effects and a music choice and append them accordingly with scene transitions; e.g., if the user goes somewhere, the model may decide for `sfx: "quiet footsteps"`. Now, we simply pass those sfx and music requests to ElevenLabs and hook them up to the scene accordingly. We should store these separately from the default assets and reuse the ones that were only generated (no need to generate quiet footsteps twice, we can just reuse what was already generated for normal footsteps too). https://elevenlabs.io/docs/eleven-api/guides/cookbooks/music https://elevenlabs.io/docs/eleven-api/guides/cookbooks/sound-effects
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#2234
No description provided.