Install
openclaw skills install @sariel2018/audio-srt-workflowGenerate or align SRT subtitles from audio using this repository. Use when the user asks for subtitle generation, transcript-to-audio alignment, timing cleanup, SRT quality checks, or subtitle preview video rendering.
openclaw skills install @sariel2018/audio-srt-workflowUse this skill for end-to-end subtitle work.
This package is self-contained for runtime entrypoints:
scripts/align_to_srt.pyscripts/gui_app.pyscripts/srt_stats.pyscripts/make_preview_mp4.pyscripts/requirements.txtsrt_stats.pymake_preview_mp4.pywav, mp3, m4a, ...)zh, en, ...)align_to_srt.py --text ...).run_auto_subtitle_pipeline).srt_stats.py).Set a local variable to your installed skill directory.
Codex default path:
SKILL_DIR="${CODEX_HOME:-$HOME/.codex}/skills/audio-srt-workflow"
OpenClaw/ClawHub install path example:
SKILL_DIR="<your-workdir>/skills/audio-srt-workflow"
Run these checks before execution:
python3 --version
ffmpeg -version
python3 -c "import faster_whisper; print('ok')"
If faster-whisper import fails:
# Review dependencies before installing:
cat "$SKILL_DIR/scripts/requirements.txt"
pip install -r "$SKILL_DIR/scripts/requirements.txt"
python3 "$SKILL_DIR/scripts/align_to_srt.py" \
--audio "<input_audio>" \
--text "<transcript_txt>" \
--output "<output_srt>" \
--model small \
--language zh
GUI:
python3 "$SKILL_DIR/scripts/gui_app.py"
Or use Python API in scripts:
build_alignment_config(...)run_auto_subtitle_pipeline(...)See command details in references/command-templates.md.
Timing stats:
python3 "$SKILL_DIR/scripts/srt_stats.py" --srt "<output_srt>"
Preview video:
python3 "$SKILL_DIR/scripts/make_preview_mp4.py" \
--audio "<input_audio>" \
--srt "<output_srt>" \
--output "<preview_mp4>"
.srt extension.output_YYYYMMDD.srt).zh), the pipeline strips commas/periods only.allow_implicit_invocation: false).