← Back to Skills Marketplace
sariel2018

Audio SRT Workflow

by Sariel2018 · GitHub ↗ · v0.1.2 · MIT-0
cross-platform ✓ Security Clean
113
Downloads
1
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install audio-srt-workflow
Description
Generate or align SRT subtitles from audio using this repository. Use when the user asks for subtitle generation, transcript-to-audio alignment, timing clean...
README (SKILL.md)

Audio SRT Workflow

Use this skill for end-to-end subtitle work.

This package is self-contained for runtime entrypoints:

  • scripts/align_to_srt.py
  • scripts/gui_app.py
  • scripts/srt_stats.py
  • scripts/make_preview_mp4.py
  • scripts/requirements.txt

Scope

  • Mode A: audio + reference text -> aligned SRT
  • Mode B: audio only -> auto subtitle SRT
  • Timing QA with srt_stats.py
  • Burned preview generation with make_preview_mp4.py

Inputs To Collect First

  1. Audio path (wav, mp3, m4a, ...)
  2. Whether a reference transcript is available
  3. Output SRT path (or output directory)
  4. Language hint (zh, en, ...)
  5. Preferred run style: CLI, GUI, or Python API

Decision Rule

  • If transcript exists, run Mode A (align_to_srt.py --text ...).
  • If transcript does not exist, run Mode B via GUI or Python API (run_auto_subtitle_pipeline).

Workflow

  1. Validate environment and paths.
  2. Choose Mode A or Mode B by transcript availability.
  3. Run subtitle generation from packaged scripts.
  4. Run timing diagnostics (srt_stats.py).
  5. If needed, render a preview mp4 with burned subtitles.

Resolve Skill Script Path

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="\x3Cyour-workdir>/skills/audio-srt-workflow"

Environment Checks

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"

Mode A Command Template (Audio + Transcript)

python3 "$SKILL_DIR/scripts/align_to_srt.py" \
  --audio "\x3Cinput_audio>" \
  --text "\x3Ctranscript_txt>" \
  --output "\x3Coutput_srt>" \
  --model small \
  --language zh

Mode B Command Template (Audio Only)

GUI:

python3 "$SKILL_DIR/scripts/gui_app.py"

Or use Python API in scripts:

  • Build config with build_alignment_config(...)
  • Run run_auto_subtitle_pipeline(...)

See command details in references/command-templates.md.

QA And Preview

Timing stats:

python3 "$SKILL_DIR/scripts/srt_stats.py" --srt "\x3Coutput_srt>"

Preview video:

python3 "$SKILL_DIR/scripts/make_preview_mp4.py" \
  --audio "\x3Cinput_audio>" \
  --srt "\x3Coutput_srt>" \
  --output "\x3Cpreview_mp4>"

Output Conventions

  • Default output uses .srt extension.
  • Prefer dated naming for batch runs (for example output_YYYYMMDD.srt).
  • Keep intermediate checks in a separate folder from final delivery files.

Notes

  • For Chinese output (zh), the pipeline strips commas/periods only.
  • If timings look off, inspect waveform snap related arguments before changing model size.
  • This skill requires explicit invocation (allow_implicit_invocation: false).
Usage Guidance
This package appears to be what it says: an offline toolset to align/generate SRTs and render preview videos. Before installing/running: - Run it in a dedicated Python virtualenv to avoid affecting your system Python. - Confirm ffmpeg is the binary you expect (ffmpeg in PATH or pass --ffmpeg-bin). The preview tool shells out to ffmpeg to burn subtitles. - If you want to avoid network downloads, pre-download or place Whisper model files in a local directory and set FASTER_WHISPER_MODEL_DIR (the code checks this env var) so faster-whisper won't fetch large weights at runtime. - Be aware: when faster-whisper does need to fetch models it may use Hugging Face tooling which can pick up HF tokens from your environment; avoid running this skill in an environment that contains unexpected credentials you don't want used. - The GUI requires tkinter; the code will exit if tkinter is unavailable. - Inspect the included scripts (they are small and readable) and test with non-sensitive audio first. If you need higher assurance, run in an isolated environment or container to observe any network activity during model loading.
Capability Analysis
Type: OpenClaw Skill Name: audio-srt-workflow Version: 0.1.2 The skill bundle provides a legitimate and well-structured workflow for generating and aligning SRT subtitles using the faster-whisper library and ffmpeg. Analysis of the Python scripts (align_to_srt.py, gui_app.py, make_preview_mp4.py) and the SKILL.md instructions reveals no evidence of malicious intent, data exfiltration, or prompt injection. The code uses standard practices for audio processing and subprocess management, and the environment checks and installation steps are consistent with the stated purpose of the tool.
Capability Assessment
Purpose & Capability
Name/description match the included scripts and requirements: align_to_srt.py, gui_app.py, srt_stats.py, make_preview_mp4.py and a requirements.txt listing faster-whisper. Required tools referenced in SKILL.md (Python 3.10+, ffmpeg, faster-whisper) are appropriate for subtitle/transcription work. One minor mismatch: the code reads an optional environment variable FASTER_WHISPER_MODEL_DIR to locate models but this env var is not documented in the registry's required env list.
Instruction Scope
SKILL.md gives concrete invocation templates and environment checks (python version, ffmpeg, faster_whisper import) and directs the agent to run only the included scripts on user-supplied audio/text files. The instructions do not ask for unrelated files, secrets, or to transmit outputs to unusual external endpoints. Note: faster-whisper/model usage may download model weights from remote hosts when a model path is not local — this is expected for ASR but is a network behavior to be aware of.
Install Mechanism
No install spec is present (instruction-only), and dependencies are limited to a pinned faster-whisper package in scripts/requirements.txt. No arbitrary URL downloads or archive extraction are performed by the skill itself. The README suggests using a venv and pip install -r requirements.txt which is standard.
Credentials
The skill declares no required credentials (none in registry) which matches the code. However, the code optionally consults FASTER_WHISPER_MODEL_DIR to locate local model files (not declared in requires.env). Also, faster-whisper / underlying HF tooling may use existing Hugging Face credentials (e.g., HF_TOKEN) from the environment if the user has them configured when fetching private models; that credential access is implicit and not declared. Overall requested privileges are minimal and appropriate for the task, but be aware of the implicit model-download behavior and any credentials present in your environment.
Persistence & Privilege
always:false and allow_implicit_invocation:false in the agent metadata; the skill does not request permanent system presence, nor does it modify other skills or system-wide configs. It only runs local scripts and writes output files specified by the user.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install audio-srt-workflow
  3. After installation, invoke the skill by name or use /audio-srt-workflow
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.2
Security hardening: require explicit invocation, pin faster-whisper version, and add dependency-review step before install.
v0.1.1
Make package self-contained: include runtime scripts and requirements in skill bundle; update instructions to use packaged script paths.
v0.1.0
Initial release of audio-srt-workflow skill. - Generate or align SRT subtitles from audio, with or without a reference transcript. - Supports SRT timing cleanup, quality checks, and subtitle preview video rendering. - Offers both CLI, GUI, and Python API run styles. - Requires Python 3.10+, ffmpeg, and faster-whisper. - Includes workflows for audio with text (alignment) and audio only (auto-generation).
Metadata
Slug audio-srt-workflow
Version 0.1.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Audio SRT Workflow?

Generate or align SRT subtitles from audio using this repository. Use when the user asks for subtitle generation, transcript-to-audio alignment, timing clean... It is an AI Agent Skill for Claude Code / OpenClaw, with 113 downloads so far.

How do I install Audio SRT Workflow?

Run "/install audio-srt-workflow" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Audio SRT Workflow free?

Yes, Audio SRT Workflow is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Audio SRT Workflow support?

Audio SRT Workflow is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Audio SRT Workflow?

It is built and maintained by Sariel2018 (@sariel2018); the current version is v0.1.2.

💬 Comments