How to Use ElevenLabs Sound Effects in opencode
ElevenLabs Sound Effects creates Foley, game sounds, cinematic impacts, and ambience from text descriptions. Use it for individual effects lasting 0.5 to 30 seconds or looping backgrounds that repeat without an audible boundary.
Prompts to try with ElevenLabs Sound Effects in opencode
Copy an example into opencode, or ask in your own words.
Read the game's movement code and use ElevenLabs Sound Effects to create separate 2-second footstep clips for gravel, wood, and shallow water. Describe each surface clearly and save the clips with descriptive names.
Inspect the app's notification components and use ElevenLabs Sound Effects to create a 1-second soft confirmation click and a separate 1-second muted error buzz. Keep both descriptions focused on a short attack and quick decay.
Read the level description and use ElevenLabs Sound Effects to generate a 20-second looping background of steady ventilation in an empty industrial room. Ask for a low mechanical hum with gentle air movement.
Use ElevenLabs Sound Effects to create a 4-second heavy steel door slam with a sharp impact and fading hallway echo. Save it beside the game's existing door assets for review.
Review the cutscene script and use ElevenLabs Sound Effects to generate its footsteps, latch click, and door creak as separate clips of 2 to 5 seconds each. Prepare a timing list for arranging them in an audio editor.
How to set up ElevenLabs Sound Effects in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run ElevenLabs Sound Effects
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "elevenlabs", "model": "sound-generation", "input": { "text": "A large, ancient wooden door slowly opening in an eerie, abandoned castle.." } }'
Then paste one of the prompts above: opencode finds ElevenLabs Sound Effects on Spiral, shows the price and runs it.
ElevenLabs Sound Effects providers and prices
Spiral runs ElevenLabs Sound Effects through ElevenLabs. Open a card for today's price, with every fee included.
Settings you can ask for
ElevenLabs Sound Effects works from your text. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Loop | on or off | off | Whether to create a sound effect that loops smoothly. |
| Output format | alaw_8000, mp3_22050_32, mp3_24000_48, mp3_44100_128, mp3_44100_192, mp3_44100_32, mp3_44100_64, mp3_44100_96 and 20 more | mp3_44100_128 | Output format of the generated audio. |
| Duration seconds | a number | The duration of the sound which will be generated in seconds. Must be at least 0.5 and at most 30. If set to None we will guess the optimal duration using the prompt. Defaults to None. | |
| Prompt influence | a number | 0.3 | A higher prompt influence makes your generation follow the prompt more closely while also making generations less variable. Must be a value between 0 and 1. Defaults to 0.3. |
Every API field of ElevenLabs Sound Effects is on its tool page: open its card above.
What can you do with ElevenLabs Sound Effects in opencode?
Create sound assets for game actions and interface feedback directly from the project's requirements. A coding agent can turn those requirements into separate effect descriptions and help place the resulting audio in the project.
Game interaction sounds
Create separate effects for footsteps, item pickups, doors, and collisions. Describe the surface or material for each action.
Interface feedback
Generate short confirmation clicks, notification tones, and error buzzes for an app prototype.
Environmental backgrounds
Make a 20 to 30-second looping rain, forest, or machinery background for repeated playback.
Foley for video
Generate footsteps, fabric movement, or object handling as separate clips, then place them against the action in an editor.
Trailer impacts
Create a cinematic metal hit or low impact with a described attack and reverb tail.
Video transitions
Generate individual whooshes or mechanical swishes to accompany cuts and title changes.
Short musical samples
Create a drum loop, bass phrase, or melodic sample for a larger audio arrangement.
Scene sound layers
Generate an environmental background and separate foreground effects, then arrange their timing and balance in an audio editor.
ElevenLabs Sound Effects success rate and speed on Spiral
Success and speed over the last 24 hours, across every run of these tools on Spiral.
| Tool | Success | Median time | Runs |
|---|---|---|---|
| ElevenLabs Sound Effects | 97.2% | 5.0s | 108 |
More on ElevenLabs Sound Effects and opencode
Overview
ElevenLabs Sound Effects in other agents
Questions about ElevenLabs Sound Effects in opencode
Can opencode use ElevenLabs Sound Effects?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run ElevenLabs Sound Effects like any built-in tool.
How much does ElevenLabs Sound Effects cost in opencode?
$0.156 per minute of sound (30 seconds by default). You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an ElevenLabs account to use ElevenLabs Sound Effects in opencode?
No. Spiral runs ElevenLabs Sound Effects on its own ElevenLabs account. You sign in to Spiral once and never paste a key.
How long does it take to set up ElevenLabs Sound Effects in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while ElevenLabs Sound Effects runs?
ElevenLabs Sound Effects runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.
What is ElevenLabs Sound Effects useful for?
Use it for game effects, Foley, cinematic impacts, interface sounds, and environmental ambience. Describe the sound itself, including its material, surroundings, and decay.
How long can a sound effect be?
Each generation can last 0.5 to 30 seconds. For a longer background, generate a looping effect and repeat it during editing or playback.
Can ElevenLabs Sound Effects make continuous ambience?
Yes. Looping effects are designed to repeat without a noticeable start or end point, which suits rain, wind, and other environmental backgrounds.
How should I describe the sound I want?
Keep the description brief but concrete: name the source, environment, intensity, and decay. For example, describe a heavy steel door slamming in a tiled hallway with a short echo.
How do I get a sequence of sounds in the right order?
For better control, generate each effect separately and arrange the clips in an audio editor. ElevenLabs recommends this approach over asking for a complex sequence in one generation.
Start using ElevenLabs Sound Effects in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


