mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4120] [Feature]: use AI models to autogenerate sound and music assets in gm mode #2234
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2234
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
@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