agentleFS
puntorigenpuntorigen/avatar-skills/sound-effects/SKILL.md

sound-effects

Skill3 starsChanged 4 months agoMITView on GitHub

Generate consistent sound effects and short audio assets for mobile/web apps using Stable Audio 2.5 on Replicate. Supports UI sounds, notifications, game SFX, ambient loops, transitions, and more. Automatically enhances prompts for professional-quality results. Use when the user asks to generate, create, or produce sound effects, audio assets, UI sounds, notification tones, or any short audio content for their app.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pose-library-design, video-toolkit and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LinHao-citySkill

    pose-library-design

    Design reusable 2D character pose libraries, action cycles, and expression states for data-driven animation.

    Also in 4 projects that use this

  • LinHao-citySkill

    video-toolkit

    Create professional videos autonomously using claude-code-video-toolkit — AI voiceovers, image generation, music, talking heads, and Remotion rendering.

    Also in 4 projects that use this

  • GopyrSkill

    azure-speech-to-text

    Also in 3 projects that use this

  • GopyrSkill

    dashscope

    Also in 3 projects that use this

  • dAAAbSkill

    heygen

    Also in 4 projects that use this

  • MoizIbnYousafSkill

    visual-style

    Build a persistent visual brand identity for image generation. Defines how the brand looks visually — aesthetic, lighting, composition, mood — and writes it to brand/creative-kit.md so /image-gen and other creative skills produce consistent on-brand visuals. Three modes: Extract (from website/URL), Build (interview), Reference (mood board/examples). Use when starting any project that needs images, when the user says "visual style", "brand aesthetic", "image style", "visual identity", "how should our images look", "build visual brand", "define our look", or when /image-gen outputs feel generic because no visual style exists yet.

    Also in 4 projects that use this

  • +6 more from LinHao-city

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use --no-trim to disable (useful for ambient loops or music that fills the full duration).

    line 150
  2. Very specific:

    Use --raw-prompt to bypass this and send your exact text to the model.

    line 206

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sound Effects Generator

Generate production-ready sound effects for mobile and web apps using Stable Audio 2.5 on Replicate.

Setup

Install dependencies (one-time):

pip3 install -r ~/.cursor/skills/sound-effects/scripts/requirements.txt

Set your Replicate API token (one-time — skipped if already configured by another skill):

python3 ~/.cursor/skills/sound-effects/scripts/setup_key.py YOUR_REPLICATE_API_TOKEN

Quick Reference

Generate a sound effect

python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "button click" \
  --category ui --duration 1 --output click.mp3

Generate with enhanced prompt (default)

The script automatically enhances your description into an optimal prompt for the model. Use --raw-prompt to skip enhancement:

# Enhanced (default): "button click" becomes a detailed audio-engineering prompt
python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "button click" -c ui -d 1 -o click.mp3

# Raw: use your prompt verbatim
python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "soft digital click, clean, minimal, 44.1kHz" \
  --raw-prompt -d 1 -o click.mp3

Batch generate multiple effects

python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "success chime" \
  --category notification --duration 2 --variations 3 --output success.mp3
# Generates: success_1.mp3, success_2.mp3, success_3.mp3

generate_sfx.py Options

OptionShortDescription
--category CAT-cSound category preset (see below)
--duration SECS-dDuration in seconds (1-90, default: 3)
--output PATH-oOutput file path (default: auto-named)
--variations N-nNumber of variations to generate (1-5)
--seed INTRandom seed for reproducible results
--steps INTDiffusion steps (default: 8, higher = better but slower)
--cfg-scale FLOATGuidance scale (default: 3.5, higher = stricter prompt adherence)
--raw-promptUse prompt as-is, skip enhancement
--trim / --no-trimAuto-trim leading/trailing silence (default: on)
--trim-threshold DBSilence detection threshold in dB (default: -35)
--fade-out MSFade-out applied after trim in ms (default: 20)
--list-categoriesShow all available categories

Sound Categories

CategoryBest ForGen DurationPrompt Style
uiClicks, toggles, swipes, taps3sClean, digital, minimal
notificationAlerts, badges, messages3sTonal, melodic, clear
successCompletions, achievements, confirmations3sPositive, bright, resolved
errorFailures, warnings, invalid actions3sDiscordant, attention-grabbing
transitionScreen changes, modals, reveals3sSwoosh, whoosh, smooth
ambientBackground loops, atmosphere20sTextural, environmental
gamePower-ups, collectibles, impacts3sDynamic, punchy, satisfying
voiceVocal textures, vocalizations3sHuman vocal elements
natureRain, wind, birds, water15sOrganic, environmental
mechanicalMotors, gears, machinery3sIndustrial, metallic
musicalJingles, stingers, intros5sMelodic, composed
foleyFootsteps, doors, objects3sRealistic, physical
genericGeneral purpose (default)3sNeutral, versatile

Gen Duration is the minimum passed to the model (-d flag). Actual file duration will be shorter after auto-trim strips silence.

Categories are defined in scripts/categories.json and can be customized or extended.

Common Workflows

Generate a UI sound set for a mobile app

# Button tap (3s gen → auto-trimmed to ~150ms)
python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "button tap" \
  -c ui -o sounds/tap.mp3

# Toggle switch
python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "toggle switch on" \
  -c ui -o sounds/toggle_on.mp3

# Back swipe
python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "swipe back gesture" \
  -c transition -o sounds/swipe_back.mp3

Generate notification sounds

python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "new message received" \
  -c notification -d 2 -o sounds/message.mp3

python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "task completed successfully" \
  -c success -d 2 -o sounds/complete.mp3

python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "error occurred" \
  -c error -d 1 -o sounds/error.mp3

Generate ambient loops

python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "calm office background" \
  -c ambient -d 30 -o sounds/office_ambient.mp3

Reproducible results with seed

# Same seed = same output
python3 ~/.cursor/skills/sound-effects/scripts/generate_sfx.py "coin collect" \
  -c game -d 1 --seed 42 -o coin.mp3

Silence Trimming

The model needs at least 3 seconds of generation time to follow prompts well, but many SFX (clicks, taps, pops) are 60-400ms of actual audio followed by silence. By default, --trim is enabled and automatically:

  1. Detects where actual audio begins and ends using ffmpeg's silencedetect filter
  2. Trims the file to just the active region (with 10ms padding)
  3. Applies a subtle 20ms fade-out for clean tails
  4. Overwrites the file in-place

This is especially important for UI micro-interactions where sub-200ms precision matters.

Use --no-trim to disable (useful for ambient loops or music that fills the full duration).

Standalone trimming

The trim tool can also be used independently on any audio file:

# Trim a single file
python3 ~/.cursor/skills/sound-effects/scripts/trim_silence.py input.mp3 --output trimmed.mp3

# Trim in-place
python3 ~/.cursor/skills/sound-effects/scripts/trim_silence.py input.mp3 --in-place

# Tighter threshold for very quiet sounds
python3 ~/.cursor/skills/sound-effects/scripts/trim_silence.py input.mp3 --threshold -40 --in-place

# Add a longer fade-out
python3 ~/.cursor/skills/sound-effects/scripts/trim_silence.py input.mp3 --fade-out 50 -o smooth.mp3

# Batch process a folder
python3 ~/.cursor/skills/sound-effects/scripts/trim_silence.py sounds/*.mp3 --in-place

trim_silence.py Options

OptionShortDescription
--output PATH-oOutput file or directory
--threshold DB-tSilence threshold in dB (default: -35, lower = more aggressive)
--min-duration SECSMin silence segment to detect (default: 0.05)
--pad MSPadding around active region in ms (default: 10)
--fade-out MSFade-out duration in ms (default: 0)
--in-placeOverwrite input files

Model

This skill uses Stable Audio 2.5 (stability-ai/stable-audio-2.5) on Replicate. Key capabilities:

FeatureSpecification
Min Duration1 second (3s recommended for quality)
Max Duration90 seconds
Output FormatMP3
Sample Rate44.1 kHz
Diffusion StepsConfigurable (default 8)
CFG ScaleConfigurable (default 3.5)

Prompt Enhancement

By default, the script enhances your natural-language description into an audio-engineering prompt optimized for Stable Audio 2.5. The enhancement:

  1. Adds technical audio descriptors (clean, high-fidelity, 44.1kHz)
  2. Injects category-specific style keywords (e.g., "digital, minimal, crisp" for UI sounds)
  3. Adds appropriate mood and texture descriptors
  4. Keeps the core intent of your description intact

Use --raw-prompt to bypass this and send your exact text to the model.

Note: Stable Audio 2.5 is a synthesis model — great for clean UI/abstract/designed sounds, but real-world foley and nature ambiences can sound synthetic. For maximum realism, prefer a real-recording source (e.g. the audio-theater skill's ElevenLabs or Freesound backends).

Configuration

Config stored at ~/.cursor/skills/sound-effects/config.json:

{
  "replicate_api_token": "YOUR_TOKEN",
  "default_category": "generic",
  "default_duration": 3,
  "default_steps": 8,
  "default_cfg_scale": 3.5
}

The skill also checks for an existing Replicate token in ~/.cursor/skills/avatar-video-reel/config.json as a fallback, so you may not need to configure it again if you already use that skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.