Index of every page on this site: llms.txt
All skills
elevenlabs avatar

/sound-effects

@97478d1 official
by elevenlabselevenlabs/skills581 stars
98
Run it yourself

Generate sound effects from text descriptions using ElevenLabs. Use when creating sound effects, generating audio textures, producing ambient sounds, cinematic impacts, UI sounds, or any audio that isn't speech. Supports looping, duration control, and prompt influence tuning.

Use this Skill: https://skilld.dev/gh/elevenlabs/skills/sound-effects

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈73 tokens for metadata: the name and description. ≈1k when used: this file. ≈560 more on demand in 1 file.

Description uses 3.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈292 characters, or 3.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

ElevenLabs Sound Effects

Generate sound effects from text descriptions — supports looping, custom duration, and prompt adherence control.

Setup, before writing any code: if ELEVENLABS_API_KEY isn't set for this project, run npx -y @elevenlabs/cli@latest onboard init from the app's folder first and follow what it prints: it signs the user in and stores a key for the project, so nobody copies one by hand. Otherwise see the Installation Guide. For JavaScript, use @elevenlabs/* packages only.

Quick Start

Python

from elevenlabs import ElevenLabs

client = ElevenLabs()

audio = client.text_to_sound_effects.convert(
    text="Thunder rumbling in the distance with light rain",
    model_id="eleven_text_to_sound_v3",
)

with open("thunder.mp3", "wb") as f:
    for chunk in audio:
        f.write(chunk)

JavaScript

import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { createWriteStream } from "fs";

const client = new ElevenLabsClient();
const audio = await client.textToSoundEffects.convert({
  text: "Thunder rumbling in the distance with light rain",
  modelId: "eleven_text_to_sound_v3",
});
audio.pipe(createWriteStream("thunder.mp3"));

CLI

elevenlabs text-to-sound-effects convert \
  --text "Thunder rumbling in the distance with light rain" \
  --model-id eleven_text_to_sound_v3 \
  --output thunder.mp3

Parameters

Parameter Type Default Description
text string (required) — Description of the desired sound effect
model_id string eleven_text_to_sound_v2 Model to use. Set eleven_text_to_sound_v3 (SFX v3) explicitly: it follows multi-part prompts more closely, handles music and vocals better, and sounds more natural
duration_seconds number | null null (auto) Duration 0.5–30s; auto-calculated if null
prompt_influence number | null 0.3 How closely to follow the prompt (0–1)
loop boolean false Generate a seamlessly looping sound

Examples with Parameters

# Looping ambient sound, 10 seconds
audio = client.text_to_sound_effects.convert(
    text="Gentle forest ambiance with birds chirping",
    model_id="eleven_text_to_sound_v3",
    duration_seconds=10.0,
    prompt_influence=0.5,
    loop=True,
)

# Short UI sound, high prompt adherence
audio = client.text_to_sound_effects.convert(
    text="Soft notification chime",
    model_id="eleven_text_to_sound_v3",
    duration_seconds=1.0,
    prompt_influence=0.8,
)

Output Formats

Pass --output-format (CLI) or output_format as an SDK parameter:

Format Description
mp3_44100_128 MP3 44.1kHz 128kbps (default)
pcm_44100 Raw uncompressed CD quality
opus_48000_128 Opus 48kHz 128kbps — efficient compressed
ulaw_8000 μ-law 8kHz — telephony

Full list: mp3_22050_32, mp3_24000_48, mp3_44100_32, mp3_44100_64, mp3_44100_96, mp3_44100_128, mp3_44100_192, pcm_8000, pcm_16000, pcm_22050, pcm_24000, pcm_32000, pcm_44100, pcm_48000, wav_8000, wav_16000, wav_22050, wav_24000, wav_32000, wav_44100, wav_48000, ulaw_8000, alaw_8000, opus_48000_32, opus_48000_64, opus_48000_96, opus_48000_128, opus_48000_192.

Prompt Tips

  • Be specific: "Heavy rain on a tin roof" > "Rain"
  • Combine elements: "Footsteps on gravel with distant traffic"
  • Specify style: "Cinematic braam, horror" or "8-bit retro jump sound"
  • Mention mood/context: "Eerie wind howling through an abandoned building"

Error Handling

try:
    audio = client.text_to_sound_effects.convert(text="Explosion")
except Exception as e:
    print(f"API error: {e}")

Common errors:

  • 401: Invalid API key
  • 422: Invalid parameters (check duration range, prompt_influence range)
  • 429: Rate limit exceeded

References

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning18d5 checks · Risk SAFE
  • Gen Agent Trust Hub19d

    This skill enables users to generate sound effects via the ElevenLabs API using official SDKs and CLI tools. All installation procedures, scripts, and package dependencies originate from the official vendor infrastructure. No malicious behavior or security risks were identified.

  • Socket18d

    No alerts

  • Snyk19d

    Risk: LOW · No issues

  • Runlayer9mo

    2/2 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 97478d1. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 3 weeks ago
compatibility
Requires internet access and an ElevenLabs API key (ELEVENLABS_API_KEY).
Other metadata
metadata
{
  "openclaw": {
    "requires": {
      "env": [
        "ELEVENLABS_API_KEY"
      ]
    },
    "primaryEnv": "ELEVENLABS_API_KEY"
  }
}
  • API
  • Python
  • elevenlabs
  • text-to-sound
  • audio-generation
  • sound-effects
  • javascript

README badge

README badge for elevenlabs/skills/sound-effects

Generates sound effects from text descriptions using the ElevenLabs API, with control over duration (0.5–30s), looping, and prompt adherence. Supports multiple output formats (MP3, PCM, Opus, μ-law) and works with Python and JavaScript SDKs or cURL.

Generated from the current SKILL.md.

What API key does this skill require?
An ElevenLabs API key (ELEVENLABS_API_KEY environment variable). The skill makes calls to the ElevenLabs sound generation API and will not work without valid credentials.
Does this generate speech or only sound effects?
Only sound effects. This skill uses the text-to-sound-effects endpoint for ambient sounds, impacts, UI effects, and cinematic audio — not for speech synthesis.
Can I control how long the generated sound is?
Yes. The duration_seconds parameter accepts 0.5 to 30 seconds. If not specified, the API auto-calculates a duration based on the text description.
What programming languages are supported?
Python (via elevenlabs package), JavaScript/Node.js (via @elevenlabs/elevenlabs-js), and any language via cURL or direct HTTP requests.
Can I generate looping sounds?
Yes, the loop parameter generates seamlessly looping audio, but only with the eleven_text_to_sound_v2 model (the default).

Generated from the current SKILL.md. These answers refresh after source changes.