audio-processing
Audio ingestion, analysis, transformation, and generation (Transcribe, TTS, VAD, Features).
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- audio-processing
- metadata
- { "openclaw": { "emoji": "🎙️", "install": [ { "id": "ffmpeg", "kind": "brew", "label": "Install ffmpeg", "package": "ffmpeg" }, { "id": "python-deps", "kind": "pip", "label": "Install Python dependencies", "package": "openai-whisper gTTS librosa pydub soundfile numpy webrtcvad-wheels" } ], "version": "1.1.0", "requires": { "pip": [ "openai-whisper", "gTTS", "librosa", "pydub", "soundfile", "numpy", "webrtcvad-wheels" ], "bins": [ "ffmpeg", "python3" ] } } }
- description
- Audio ingestion, analysis, transformation, and generation (Transcribe, TTS, VAD, Features).
03 SKILL.md 正文
Audio Processing Skill
A comprehensive toolset for audio manipulation and analysis with security validations.
Security
- File paths are validated to prevent path traversal attacks
- Access to system directories (/etc, /proc, /sys, /root) is blocked
- TTS text input is limited to 10,000 characters
- All file operations use resolved absolute paths
Tool API
audio_tool
Perform audio operations like transcription, text-to-speech, and feature extraction.
- Parameters:
action(string, required): One oftranscribe,tts,extract_features,vad_segments,transform.file_path(string, optional): Path to input audio file.text(string, optional): Text for TTS (max 10,000 chars).output_path(string, optional): Path for output file (default: auto-generated).model(string, optional): Whisper model size (tiny, base, small, medium, large). Default:base.ops(string, optional): JSON string of operations for transform action.
Usage:
# Transcribe audio file
uv run --with "openai-whisper" --with "pydub" --with "numpy" skills/audio-processing/tool.py transcribe --file_path input.wav
# Transcribe with specific model
uv run --with "openai-whisper" skills/audio-processing/tool.py transcribe --file_path input.wav --model small
# Text-to-speech
uv run --with "gTTS" skills/audio-processing/tool.py tts --text "Hello world" --output_path hello.mp3
# Extract audio features
uv run --with "librosa" --with "numpy" --with "soundfile" skills/audio-processing/tool.py extract_features --file_path input.wav
# Voice activity detection (find speech segments)
uv run --with "pydub" skills/audio-processing/tool.py vad_segments --file_path input.wav
# Transform audio (trim, resample, normalize)
uv run --with "pydub" skills/audio-processing/tool.py transform --file_path input.wav --ops '[{"op": "trim", "start": 10, "end": 30}, {"op": "normalize"}]'
Actions
transcribe
Convert speech to text using OpenAI Whisper.
- Returns:
{ "text": "...", "segments": [...] } - Models: tiny, base, small, medium, large (larger = more accurate, slower)
tts
Generate speech from text using Google TTS.
- Returns:
{ "file_path": "output.mp3", "status": "created" } - Language: English (default)
extract_features
Extract audio features for analysis.
- Returns: duration, sample_rate, mfcc_mean, rms_mean
- Useful for audio classification, quality analysis
vad_segments
Detect speech segments using silence detection.
- Returns:
{ "segments": [{ "start": 0.5, "end": 3.2 }, ...] } - Uses FFmpeg silencedetect filter
- Aggressiveness: 1-3 (default: 2)
transform
Apply transformations to audio files.
- Operations: trim, resample, normalize
- Returns:
{ "file_path": "output.wav" }
Requirements
- ffmpeg: Required for VAD and transform operations
- Python 3.8+: All operations
- Disk Space: Whisper models range from 100MB (tiny) to 3GB (large)
Error Handling
- Returns JSON error object on failure
- Validates all file paths before processing
- Gracefully handles missing dependencies
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.