Three.js audio generator
Generate, convert, clean, and integrate audio for Three.js browser games with ElevenLabs.
Safety check
- Script calls the network: scripts/threejs_audio_asset.py line 11
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: threejs-audio-generator
description: "Generate, convert, clean, and integrate audio for Three.js browser games with ElevenLabs: sound effects, looping ambience, music tracks and loops (menu, gameplay, boss, victory/defeat stingers), UI sounds, impact/weapon/vehicle audio, creature and boss stingers, announcer and dialogue TTS, voice conversion from a scratch performance, voice cleanup, audio manifests, and Web Audio integration."
---
# Three.js Audio Generator
Game-ready audio for Three.js projects: SFX, music, voice work, cleanup, and runtime integration. Provider: ElevenLabs.
Resolve `<this-skill-dir>` from the actual loaded skill file. Resolve sibling skills beside it first, then use the runner's discovered paths. Do not mix installed versions or assume a particular home directory.
## Reference
`references/audio-workflows.md` — the audio matrix, prompt patterns, generation, music, and voice strategy, Web Audio manager shape, and runtime failure modes. Read it before planning a game's audio, generating a batch, wiring runtime playback, or converting voices.
## When to use
SFX (jumps, hits, weapons, explosions, pickups, collisions, UI clicks) · music (menu and gameplay loops, boss themes, intensity layers, win/lose stingers) · ambience (wind, rain, city bed, engine hum, room tone, arena beds) · voice (announcer barks, boss lines, tutorial prompts, menu narration) · voice conversion from a scratch performance when timing and acting matter · cleanup and isolation before conversion or final use · Web Audio integration with loading, looping, manifests, volume groups, pause/resume, and gesture unlock.
Audio is not cosmetic for a premium game. Build an audio matrix from the events the game actually has; do not add dialogue, weapons, music, or ambience layers just to fill categories. Respect explicit silent, procedural-audio, accessibility, and external-service constraints. A narrow sound fix does not need a new soundtrack.
## API key
The script reads `--api-key` or `ELEVENLABS_API_KEY`. Keys never go in skill files, game code, or reports.
```bash
python3 <this-skill-dir>/scripts/threejs_audio_asset.py probe # ELEVENLABS_API_KEY=SET|MISSING
```
Keys defined only in a shell profile can be absent from the process env; `threejs-game-director/scripts/probe_asset_credentials.sh` sources the profile and probes all three providers.
Add `--validate` to call `GET /user` and confirm the key actually works (prints `VALID_USER=...`) when a key is present but generation fails. A valid key can still be blocked by credit or plan limits, which surface as an `HTTP 4xx` from a real generation attempt — report that as a plan blocker rather than a missing key.
## Commands
Run from the game project directory:
```bash
python3 <this-skill-dir>/scripts/threejs_audio_asset.py sfx \
--prompt "tight futuristic boost pickup, bright transient, short sparkling tail, arcade racing game" \
...From majidmanzarpour's repository, MIT licence.
Related skills
-
Checked
Flutter positional audio
Adds positional 3D sound to Flutter apps with flutter_soloud, so effects shift and fade as things move around.
8/101 credit -
Checked
Flutter SoLoud audio
Explains how to use the flutter_soloud audio plugin correctly and which feature fits each game sound problem.
7/101 credit -
Checked
Flutter audio scheduling
Schedules flutter_soloud sounds to the exact sample with low latency, so game and music audio stay in time.
8/101 credit -
Checked
Audio and video transcription
Transcribes long audio and video with the right Whisper or cloud engine, adding speaker labels when you need them.
8/101 credit -
Checked
AI Audiobook Production
Turns a manuscript into a finished AI narrated audiobook that sounds consistent and meets retailer audio specs.
8/101 credit -
Checked
AI Podcast Production
Takes an AI voiced podcast from format and script through voices, edit and loudness to a finished episode.
7/101 credit