Media & Image v0.1.1

sound-fx

Generate short sound effects via ElevenLabs SFX (text-to-sound). Use when you need SFX clips like applause, canned...

Sound FX 更新于 2026-11-23 1 浏览
下载 SKILL

技能说明

Generate short sound effects via ElevenLabs SFX (text-to-sound). Use when you need SFX clips like applause, canned laughter, whooshes, ambience, or short stingers, and optionally convert to WhatsApp-friendly .ogg/opus.

使用场景

Generate short sound effects via ElevenLabs SFX (text-to-sound). Use when you need SFX clips like applause, canned laughter, whooshes, ambience, or short stingers, and optionally convert to WhatsApp-friendly .ogg/opus.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/sound-fx
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 16 kB
SKILL.md text/markdown
---
name: sound-fx
description: Generate short sound effects via ElevenLabs SFX (text-to-sound). Use when you need SFX clips like applause, canned laughter, whooshes, ambience, or short stingers, and optionally convert to WhatsApp-friendly .ogg/opus.
---

# Sound FX (ElevenLabs)

## Overview
Generate a sound effect from a text prompt using the ElevenLabs SFX API. Output is MP3 by default; convert to .ogg/opus for WhatsApp mobile playback.

## Quick start
1) Set API key:
- `ELEVENLABS_API_KEY` (preferred) or `XI_API_KEY`
- Or set `skills."sound-fx".env.ELEVENLABS_API_KEY` in `~/.clawdbot/clawdbot.json`

2) Generate SFX (MP3):
```bash
scripts/generate_sfx.sh --text "short audience applause" --out "/tmp/applause.mp3" --duration 1.2
```

3) Convert to WhatsApp-friendly .ogg/opus (if needed):
```bash
ffmpeg -y -i /tmp/applause.mp3 -c:a libopus -b:a 48k /tmp/applause.ogg
```

## Script: scripts/generate_sfx.sh
**Usage**
```bash
scripts/generate_sfx.sh --text "canned laughter" --out "/tmp/laugh.mp3" --duration 1.5
```

**Notes**
- Uses `POST https://api.elevenlabs.io/v1/sound-generation`
- Supports optional `--duration` (0.5–30s). When omitted, duration is auto.
- Prints `MEDIA: <path>` on success for auto-attach.

## Examples
- Applause: `"short audience applause"`
- Laughter: `"canned audience laughter"`
- Whoosh: `"fast whoosh"`
- Ambience: `"soft rain ambience"`

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。