tea-x-random/unity-game-skills/unity-audio-generator
Claude Code and agent skill by tea-x-random/unity-game-skills
- community
Checking that the SKILL.md file is still in the repository.
Generate, convert, clean, and import audio for Unity casual games using ElevenLabs, then import as AudioClips with mobile-correct settings. Use for sound effects, looping ambience/music beds, UI sounds (tap/win/coin/level-up), impact/collectible/power-up audio, announcer/voice/TTS lines, voice conversion, and audio cleanup/isolation. Owns the seamless-loop crossfade and target-LUFS normalization post-processes (loopify/normalize; seamless loops are NOT an ElevenLabs feature) and routes production clips through per-clip contracts + the approved-asset registry (unity-asset-pipeline) under the art-spec audio-direction block. Covers Unity AudioClip import: compression (Vorbis), load type by clip length, force-to-mono, loop flag, target LUFS, and mobile memory budgeting.
Install
npx vskill@latest install tea-x-random/unity-game-skills/unity-audio-generatorSKILL.md
The same SKILL.md was published earlier as tea-x-random/unity-game-skills/unity-audio-generator.
Unity Audio Generator
Generate game audio with ElevenLabs, then import it as Unity AudioClips with settings tuned for mobile.
API key & script
Key resolution: --api-key, then ELEVENLABS_API_KEY. Probe / built-in probe:
Subcommands: sfx (effects/ambience from a prompt), tts (spoken line), isolate (clean/isolate speech), voice-change (convert a performance to a target voice), loopify (local seamless-loop crossfade), normalize (target-LUFS loudness). Write outputs under Assets/<Game>/Audio/.
Audio direction: one sound world, keyed to the art-spec
Production audio follows the game's art-spec.yaml audio-direction block (audio_direction: — shared prompt prefix, instrument palette, mood tokens keyed to style_id, pinned TTS voice) the same way art follows the palette:
- Every production
sfxprompt starts with the spec's shared prompt prefix/instrument-palette tokens VERBATIM — SFX identity rests entirely on these shared tokens (there is no voice/style pin for SFX). - A pinned
voice_idapplies to TTS only: all VO uses the spec's one pinned voice via--voice-id. - No art-spec / no audio_direction block yet = exploratory clips only; do not register production audio without one (write the block first via
unity-art-direction).
Loops and loudness (local post-processing, requires ffmpeg)
Seamless looping is a local crossfade post-process, NOT an ElevenLabs feature — the API's --loop flag and "seamless" prompt words do not guarantee a clean seam. For every clip whose contract sets runtime.audio.loop: true:
Verify 2-3 loop wraps in Unity (AudioSource.loop = true) before flipping the loop flag.
Production clips ship via contract + registry
Like art, a generated file is not a game asset. Production clips get a per-clip asset-contract.yaml (source.generator: elevenlabs, runtime.type: audio) whose runtime.audio: section records load type, Vorbis quality, force-to-mono, loop flag, and target LUFS; validate with unity-asset-pipeline/scripts/validate_asset_manifest.py and register in the approved-asset registry (audio entries use clip: instead of prefab:). The AudioImporter settings below are the enforcement of that section — import QA fails when they disagree. Exploratory jingles/one-off tests may skip the pipeline but never ship.
What to generate for casual games
- Core feedback SFX: tap/select, success/win, fail, coin/collectible, combo/streak, level-up, button — short, punchy, distinct. These carry most of the "juice."
- Music: one or two short seamless loops (menu + gameplay); keep files small.
- Ambience: optional looping bed for theme.
- Voice: announcer stingers or tutorial VO via
tts; clean recordings withisolate.
Import into Unity (via unity-mcp-bridge)
After writing under Assets/<Game>/Audio/, refresh_unity(scope="assets", wait_for_ready=true), then set AudioImporter settings with execute_code from the clip contract's runtime.audio: values (role guidance below when no contract exists yet):
Guidance by role:
- Short SFX (<1s): Vorbis,
DecompressOnLoad, force-to-mono. - Music / long loops:
Streaming(orCompressedInMemory), stereo, lower quality is fine. - VO:
CompressedInMemory, mono.
Then wire playback: an AudioSource per role (SFX one-shots via PlayOneShot, a looping music source), or a small AudioManager singleton. Keep concurrent voices low on mobile.
Mobile rules
- Favor Vorbis; avoid uncompressed PCM for anything but tiny critical SFX.
- Force-to-mono for SFX/VO; reserve stereo for music.
- Cap total audio memory; stream music rather than loading it whole.
- Report prompts, output paths, contract paths, import settings per clip, and where each clip triggers.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/unity-audio-generator/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tea-x-random/unity-game-skills/unity-audio-generator)