Use when AudioClaw Skills needs to understand a user voice message with AudioClaw ASR, including speech-to-text, model routing for deepthink or pro features,...
设计与多媒体
Luis Audio Translator
试用Convert, compress, merge, split, clip, inspect, and extract audio locally with FFmpeg, plus decode supported music-cache formats including pure-Python Ximala...
它能做什么
Convert, compress, merge, split, clip, inspect, and extract audio locally with FFmpeg, plus decode supported music-cache formats including pure-Python Ximala...
技能文档
Luis-audio-translator Skill
Overview
Use this skill for local audio processing through scripts/luis_audio_translator.py. It is portable: it does not contain personal paths, API keys, machine identifiers, or bundled proprietary binaries.
The core script works after download when Python is available and FFmpeg is installed on PATH. Ximalaya .xm decoding is built in and uses only Python. Other encrypted/cache formats may require optional local helper binaries.
When to Use
- Convert audio formats, including extracting audio from video.
- Compress audio by bitrate.
- Merge multiple audio files in order.
- Split a file into equal-duration parts.
- Clip a time range from an audio/video file.
- Inspect duration, codec, bitrate, sample rate, and audio streams.
- Decode supported local music-cache inputs when the user has configured local helper tools.
- Convert Kugou special formats with
scripts/kugou_audio_converter.py.
Prerequisites
- Python 3.8+.
- FFmpeg for conversion, merge, split, clip, and video-to-audio.
- FFprobe for
infoand duration-awaresplit.
Resolution order:
- Command-line option:
--app-dir. - Environment variables:
LUIS_AUDIO_TRANSLATOR_ENGINE_DIRLUIS_AUDIO_TRANSLATOR_FFMPEGLUIS_AUDIO_TRANSLATOR_FFPROBELUIS_AUDIO_TRANSLATOR_UMLUIS_AUDIO_TRANSLATOR_MUSIC_TOOLLUIS_AUDIO_TRANSLATOR_SILKLUIS_AUDIO_TRANSLATOR_KGG_HELPERLUIS_AUDIO_TRANSLATOR_KUGOU_INFRA_DLLLUIS_AUDIO_TRANSLATOR_KUGOU_DB
- System
PATHforffmpegandffprobe.
Do not put user-specific paths in SKILL.md. If a machine needs a local engine directory, set an environment variable outside the skill.
How to Run
Resolve paths relative to the directory containing this SKILL.md.
Check dependency status:
python scripts/luis_audio_translator.py diagnose
Convert or extract audio:
python scripts/luis_audio_translator.py convert "input.mp4" --format mp3 --bitrate 192k --output-dir "out"
Compress:
python scripts/luis_audio_translator.py compress "input.wav" --format mp3 --bitrate 96k --output-dir "out"
Merge:
python scripts/luis_audio_translator.py merge "a.mp3" "b.wav" --format mp3 --output-dir "out" --basename "merged"
Split:
python scripts/luis_audio_translator.py split "input.mp3" --segment-seconds 300 --format mp3 --output-dir "out"
Clip:
python scripts/luis_audio_translator.py clip "input.mp3" --start 00:01:20 --duration 45 --format wav --output-dir "out"
Inspect:
python scripts/luis_audio_translator.py info "input.flac"
Decode local cache input:
python scripts/luis_audio_translator.py decrypt "input.ncm" --output-dir "out"
Decode Ximalaya .xm input:
python scripts/luis_audio_translator.py decrypt "input.xm" --output-dir "out"
Convert Kugou special formats:
python scripts/kugou_audio_converter.py diagnose --app-dir ""
python scripts/kugou_audio_converter.py convert "KugouMusic" --format mp3 --output-dir "out" --recursive --app-dir ""
Quick Reference
Common output formats: mp3, wav, ogg, flac, m4a, m4r, mp2, aiff, ac3, wma, amr, aac, opus, caf, au, mka, webm.
Kugou special input formats handled by kugou_audio_converter.py: .kgm, .kgma, .kgtemp, .kgm.flac, .kgg.
Ximalaya input handled by luis_audio_translator.py decrypt: .xm.
Special output handling:
amrforces 8000 Hz mono.flacuses signed 16-bit sample format.m4ruses an MP4 container.
Read references/core-behavior.md for supported input-extension lists and optional decode helper behavior.
Privacy And Portability
- The skill does not embed local usernames, absolute install paths, credentials, or machine IDs.
- The script does not send files or metadata over the network.
- JSON output may include input/output paths because agents need them to continue workflows.
--print-commandprints full local paths and should be used only for debugging.
Pitfalls
- If
diagnosereports no FFmpeg, install FFmpeg or setLUIS_AUDIO_TRANSLATOR_FFMPEG. - If
splitfails butconvertworks, install FFprobe or setLUIS_AUDIO_TRANSLATOR_FFPROBE. - Decrypt helpers other than
.xmare optional and environment-specific; ordinary conversion and.xmdecoding should not depend on them. .kggconversion needskgg-helperand a compatible local Kugouinfra.dll;KGMusicV3.dbis used when available. Run the Kugou converter'sdiagnosecommand first..xmdecoding is implemented in pure Python and does not require Node.js, WebAssembly, or external helpers.- OpenClaw, Hermes, Claude, and Codex should invoke the script by resolving
scripts/luis_audio_translator.pyrelative toSKILL.md, not by using a machine-specific absolute path.
Verification
- Run
python scripts/luis_audio_translator.py diagnose. - Run
python -m py_compile scripts/luis_audio_translator.py scripts/kugou_audio_converter.py scripts/xm_audio_decoder.py. - Run
python scripts/xm_audio_decoder.py --self-test. - Generate or provide a short test media file, then run
info,convert,merge, andsplit.
相关技能
Use when the user wants to open, stop, configure, debug, or package the SenseAudio floating audio assistant in AudioClaw, including system-audio subtitles, b...
Transcribe audio and video with the transcribe.so CLI. Turns YouTube videos, podcasts (Apple Podcasts, Spotify, SoundCloud, Vimeo, Twitch, Loom), direct media URLs, and local audio or video files into speaker-labelled transcripts with timestamped segments, chapters, sections, cited Q&A, and subtitle files (SRT, VTT, karaoke VTT). Use when the user wants a transcript, show notes, chapters, subtitles, quotes, or answers grounded in a recording. 52 languages and dialects.
Translate foreign-language audio into English text using OATDA's unified audio API. Triggers when the user wants audio translation, spoken-language translati...
Terminal transcription of audio files and URLs with the Gladia CLI (gladia speech-to-text). Use when the user has gladia-cli installed, wants shell-based tra...
Use when the user wants to open, stop, configure, debug, or package the SenseAudio floating audio assistant in AudioClaw, including system-audio subtitles, b...