Transcribes audio/video to SRT, JSON, and plain text with hotword vocabulary support from OpenLess or lov-personal-vocabulary. Shows cost before paid cloud ASR.
Ships in video-creation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
输入音频或视频,输出 UTF-8 SRT、结构化 cue JSON、纯文本与可审计报告。
默认复用可发现的 OpenLess 词库;也可直接接收 lov-personal-vocabulary 的
canonical vocabulary.json,但不接管词库的增删、学习与同步。
lov-personal-vocabulary。lov-subtitle-freedom-skill。lov-media-creator。Every generated Skill is connected to the shared user-profile/v1 contract in
skill.yaml. Read the shared user, brand, workspace, preferences, and this
Skill's skills.<skill_id> namespace at the start of every run. Keep the source
portable: resolved personal values belong in the shared profile, never here.
When the user directly states a durable preference or brand fact, persist it
through scripts/profile_store.py and report the saved profile path. Put
Skill-specific values under records.<field>; use brand.<field> or
user.<field> for shared values. Do not persist inferred secrets or credentials.
See references/user-profile.md for the complete contract.
Read references/skill-composition.md before deciding whether to invoke or
extend any adjacent capability. The record distinguishes optional upstream and
downstream handoffs from embedded Kit modules. Do not silently depend on a
sibling Skill that is not shipped with this source.
You MUST follow these steps in order.
SKILL_DIR if the environment provides it.When running scripts manually:
export SKILL_DIR="/path/to/lov-voice2srt"
Resolve context.profile on every invocation. The precedence is current request,
project context, Skill-specific profile records, shared preferences, shared
brand/user profile, then safe defaults. A direct user statement about a durable
preference or brand fact should be saved with scripts/profile_store.py record
using --confirm, followed by a concise saved-path report.
在调用付费 API 前必须运行 --dry-run,向用户显示输入时长、provider、model、
词库条数、分段方案与预计费用。只有用户已明确接受本次 API 费用,才使用
--confirm-cost。用户只说“以后可以接受 API 成本”时,仍要给出本次金额摘要。
references/skill-composition.md.providerType 判断真实
协议,不能把 activeAsrProvider 或 map key 当作密钥类型。{phrase, enabled}、canonical
{entries:[...]} 与一行一词文本;过滤禁用项、空词和大小写重复项,默认最多
80 个。只在用户选择 --no-vocabulary 时关闭。dashscope:qwen-audio-3.0-asr-flash,默认按 240 秒转为 16 kHz 单声道
MP3 分段;即时热词权重为 5,通过 SSE 收集每个 sentence_end=true 的句级
与词级时间戳。兼容 provider 返回单句或分段累计 sentence 两种行为;累计
结果必须按前缀 words/text 做增量差分,再按强标点、最长约 5.2 秒或 24 字的
软标点切成可读 cue。适合已有 DASHSCOPE_API_KEY、不想授权 Keychain 的运行。volcengine:大模型录音文件极速接口,把整段音频压成 MP3 后一次提交,
使用 show_utterances 与 OpenLess 同款 context.hotwords。支持环境变量凭据;
--openless-keychain 只在用户明确允许一次性读取时使用。whisper-cpp:无云端凭据或音频不能离机时的本地回退;读取
WHISPER_CPP_MODEL 或本机缓存的 large-v3-turbo 模型,把个人词库作为
initial prompt。它不产生 API 费用,但不把 prompt 传入等同于术语必然正确。transcript.srt、
transcript.json、transcript.txt、report.json 与脱敏 raw responses。先做成本预检:
python3 "$SKILL_DIR/scripts/voice2srt.py" INPUT \
--output-dir OUTPUT_DIR \
--provider dashscope \
--vocabulary VOCABULARY_JSON \
--dry-run
用户确认本次费用后执行:
python3 "$SKILL_DIR/scripts/voice2srt.py" INPUT \
--output-dir OUTPUT_DIR \
--provider dashscope \
--vocabulary VOCABULARY_JSON \
--openless-keychain \
--confirm-cost
如需复用 OpenLess 当前火山引擎凭据,在 macOS 钥匙串弹窗可见且用户允许时:
python3 "$SKILL_DIR/scripts/voice2srt.py" INPUT \
--output-dir OUTPUT_DIR \
--provider volcengine \
--openless-keychain \
--confirm-cost
不要通过修改 Keychain ACL、导出明文凭据或把凭据复制到 Profile 来消除授权弹窗。
end > start、不重叠,最后时间不超出媒体
时长 1 秒。用 FFmpeg 把 SRT 转成 WebVTT 做 parser smoke test。python3 scripts/validate_skill.py .、python3 scripts/test_voice2srt.py
和 python3 scripts/voice2srt.py --help,并验证 trust bundle。若调用成功但
parser 规则后来修正,可运行 rebuild_dashscope.py --output-dir OUTPUT_DIR 从 raw
重建,不重复调用 API。DASHSCOPE_API_KEY,或 VOLCENGINE_API_KEY,或
VOLCENGINE_APP_KEY + VOLCENGINE_ACCESS_KEY。whisper-cli 与 ggml 模型,可用 WHISPER_CPP_MODEL 指定。security 命令,仅在显式 --openless-keychain 时读取 OpenLess
Keychain;lov-personal-vocabulary 只通过 JSON 文件交接,不是安装依赖。CHANGELOG.md (opens in a new tab)LICENSE (opens in a new tab)README.md (opens in a new tab)cases/cases.json (opens in a new tab)pricing-card.yaml (opens in a new tab)references/provider-contracts.md (opens in a new tab)references/skill-card-standard.md (opens in a new tab)references/skill-composition.md (opens in a new tab)references/user-profile.md (opens in a new tab)scripts/profile_store.py (opens in a new tab)scripts/rebuild_dashscope.py (opens in a new tab)scripts/test_voice2srt.py (opens in a new tab)scripts/validate_skill.py (opens in a new tab)scripts/voice2srt.py (opens in a new tab)skill-card.md (opens in a new tab)skill-card.yaml (opens in a new tab)skill.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/video-creation:lov-voice2srtfrom video-creation
npx claudepluginhub lovstudio/skills --plugin video-creation17 skills in this plugin
/lov-branding-consistency面向公众号、网站、App、策划案、海报等真实发布场景,为读者可见文本建立受众、品牌角色、组件惯例与信息可见性门禁。Use when generating, editing, rendering, publishing, or reviewing audience-facing copy for brand and context fit.
/lov-compress-video把指定视频压到尽可能小且画质不明显下降:默认 HEVC CRF 28 保留分辨率,可选质量 档、目标体积、VMAF 画质门禁与替换原文件模式。Use when 用户说“把这个视频压小” “压缩到 50M 以内”或 “compress this video as small as possible”。
/lov-koubo-media-creator口播短片:输入一个主题,产出 AI 工具类竖版口播的调研、脚本、提词器、上屏素材与封面;作者录完口播后自动剪成上素材下出镜的成片。 Use for 做一条口播短视频、topic to talking-head short.
/lov-laozhang-style-media-creator依据带时间证据的老张心理视频风格包,把新选题和事实素材写成口播脚本、分镜与剪辑时间线,并核验风格和事实边界。Use to create evidence-grounded short videos in this reference style.
/lov-logo-sting所有视频 Skill 共用的品牌片尾(media end):把官方 Logo SVG 做成片尾动画与同帧合成音效,笔画逐拍砸入、字标落在小节线;一条命令按共享 Profile 生成,一条命令并进整片混音。用于「片尾品牌动画」「Logo 收尾」「给视频加品牌片尾」;Use for a logo sting, brand outro or the shared media end.
/lov-media-cloner复刻任一博主的视频风格:冻结样本与留出拆分,全片测量、转写与 OCR,写出带时间证据的八维规则,交付可校验的风格包、说明书与包装模板,可再封装成专属 Skill。Use to clone a creator's video style, e.g. 复刻这个博主的视频风格.
Other plugins' skills for the same job