bozhoudev/video-skills-toolkit/media-to-transcript
Claude Code and agent skill by bozhoudev/video-skills-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Convert audio/video URLs or local media into corrected Markdown transcripts through Volcengine recording-file ASR 2.0. Reuses the existing video-transcript downloader for Bilibili, Douyin, Xiaohongshu, YouTube, extracts audio when input is video, uploads local audio to R2, splits media longer than 3 minutes into parallel AUC tasks, submits volc.seedasr.auc with compact source context, then performs AI correction with topic/context/glossary. Use when the user asks for "逐字稿", "提取逐字稿", "视频转文字", "音…
Install
npx vskill@latest install bozhoudev/video-skills-toolkit/media-to-transcriptSKILL.md
Media To Transcript
Use this skill to turn audio or video into a final Markdown transcript. The only ASR backend for this skill is Volcengine recording-file recognition 2.0:
- submit endpoint:
https://openspeech.bytedance.com/api/v3/auc/bigmodel/submit - query endpoint:
https://openspeech.bytedance.com/api/v3/auc/bigmodel/query - resource id:
volc.seedasr.auc
Do not use another ASR backend for this skill.
Workflow
- Run the doctor if this is the first run, after environment changes, or after an error:
- Run the pipeline from the notes vault root:
The script automatically builds AUC context from available media metadata such as title, platform, author, duration, description, and short source URL. It keeps this ASR context under 500 Chinese characters. User-provided --topic, --context, and --context-file are also included in the same 500-character AUC context budget.
For downloaded or local media longer than 180 seconds, the script splits audio into 3-minute chunks, uploads each chunk, submits AUC tasks in parallel, and merges the returned utterances back onto the original timeline.
- Read the generated
correction-prompt.mdandraw-transcript.md. - Apply the AI correction rules in
references/correction-guidelines.md. - Save the corrected transcript to the
finalTranscriptTargetpath printed by the script, and show the full transcript to the user unless they explicitly only asked for a file.
CLI
Outputs
Each run writes a timestamped directory under outputs/ unless --out-dir is provided:
audio/: extracted/converted mp3 when the input is video or unsupported audioaudio/chunks/: 3-minute mp3 chunks when media exceeds 180 secondsasr/auc-submit.jsonorasr/auc-submit-001.json: submitted request metadata, with the API key omittedasr/auc-result.jsonorasr/auc-result-001.json: raw Volcengine recording-file recognition resultasr/auc-result-combined.json: merged AUC result for multi-chunk runsraw-transcript.md: transcript-shaped draft generated from AUC utterancescorrection-prompt.md: prompt for the AI correction passtranscript.md: target path for the final corrected transcriptrun-summary.json: machine-readable paths and metadata
The final user-facing artifact is transcript.md. Do not treat auc-result.json as final copy; it is ASR evidence for correction.
Options
| Option | Description | |||
|---|---|---|---|---|
--title <title> | Override detected title. | |||
--topic <text> | Topic/theme used during ASR context and correction. Can be repeated. | |||
--context <text> | Extra terminology or context for ASR/correction. Can be repeated. | |||
--context-file <path> | Read extra context from a local file. Can be repeated. | |||
--language <lang> | ASR language. Default: zh-CN. | |||
--speaker | Request speaker clustering when useful for interviews. | |||
--emotion | Enable AUC utterance emotion detection. Default: off. | |||
--chunk-seconds <seconds> | Split downloaded/local audio longer than this. Default: 180. | |||
--concurrency <n> | Parallel AUC chunk tasks. Default: 3. | |||
| `--media-kind <auto | audio | video>` | Force media kind. Default: auto. | |
| `--download <auto | always | never>` | Download URL before ASR. Default: auto; direct public mp3/wav/ogg URLs may skip download. | |
--out-dir <path> | Output directory. Default: skill outputs/<timestamp>-<title>. | |||
--r2-prefix <prefix> | R2 object prefix for uploaded local audio. | |||
--from-asr-json <path> | Skip download/ASR and build transcript artifacts from an existing AUC result JSON. | |||
--json | Print machine-readable summary to stdout. | |||
--doctor | Check dependencies and required env vars. |
API Setup
Preferred key location is your current workspace .env.r2, or any environment file loaded by the script:
Accepted key names:
VOLCENGINE_SPEECH_API_KEY(preferred)VOLCENGINE_AUC_API_KEYSEEDASR_API_KEYAUC_API_KEY
If --doctor does not find this API key, use this setup path:
- Open 录音文件识别服务开通 and enable “录音文件识别 2.0”.
- Open API Key 管理 and create an API Key.
- Put the key into your workspace
.env.r2asVOLCENGINE_SPEECH_API_KEY=..., or export it in the shell before running the script.
Local files still need R2 because AUC requires a public audio URL:
R2_ACCESS_KEY_IDR2_SECRET_ACCESS_KEYR2_ACCOUNT_IDR2_BUCKETR2_PUBLIC_BASE_URLorR2_PUBLIC_URL
Do not print API keys or copy .env.r2 values into chat.
Correction Rules
Before writing transcript.md, read references/correction-guidelines.md. Core constraints:
- Correct ASR mistakes using topic/context/glossary and the surrounding transcript.
- Preserve spoken meaning, order,口语词, repeated words, and uncertainty.
- Do not summarize, rewrite into article prose, invent missing content, or remove substantive speech.
- Convert ASR utterance fragments into readable transcript paragraphs with section-level timestamps.
- Mark unresolved audio as
[听不清]instead of guessing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/media-to-transcript/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bozhoudev/video-skills-toolkit/media-to-transcript)