Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Transcribes local audio and video to timestamped text with faster-whisper for review and subtitles.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
QuantSkills 社区发布维护者:abgyjaguo。
把本地音频/视频离线转写为带时间戳的原始语料。第 1 阶段脚本用 faster-whisper 出稿,第 2 阶段由调用方大模型纠错、加标点、按语义分段、写摘要。
零凭据、零云端 API、音频不离开本机。适合会议记录、访谈整理、课程笔记、字幕初稿,尤其是隐私敏感的录音(问诊、法律、人事)。
segments。转录稿是明文敏感数据,其敏感度不低于原始录音——output/ 已 gitignore,不要提交到版本库、不要上传第三方服务(包括粘贴进在线 LLM,那等于放弃本地转录的全部隐私优势)。├── SKILL.md ← 技能说明书(含错误码表、退出码、qsh-form 表单块)
├── README.md ← 本文件
├── README.en.md ← English version
├── LICENSE ← GPL-3.0 全文
├── INSTALL.md ← 五平台安装指南
├── CHANGELOG.md ← Keep a Changelog + SemVer
├── skill.json ← Skill 元数据(form / entry / runtime / auth_required)
├── requirements.txt ← 运行期依赖
├── requirements-dev.txt ← 测试依赖(刻意不继承运行期依赖)
├── config/
│ └── transcribe_config.yaml ← 模型/下载/解码/输入/输出五节超参外置
├── scripts/
│ ├── transcribe.py ← 主入口 CLI,含 run() + validate_input() + InputValidationError
│ ├── model_utils.py ← 模型发现与获取,五级顺序回退
│ ├── env_check.py ← 运行环境自检,--self-check [--json]
│ ├── config.py ← 四级配置优先级,PyYAML 缺失时降级
│ ├── validate.py ← 输出契约校验器,--strict
│ └── validate-qsh-form.mjs ← SKILL.md 表单块校验器
├── tests/ ← 11 个文件;353 passed + 2 skipped,重依赖全部桩替换
│ └── fixtures/ ← sample_zh.wav + 生成脚本
├── agents/
│ ├── openai.yaml ← OpenAPI 3.1 工具定义(x-steps / x-error-codes / x-model-sources)
│ ├── cursor-rule.mdc ← Cursor rule
│ └── portable-loader.md ← 通用可移植加载说明
├── references/
│ ├── api_guide.md ← 总入口索引
│ ├── data_guide.md ← 输入格式指南(支持格式、好结果的条件、常见陷阱)
│ ├── methodology.md ← 为什么是"脚本转录 + 大模型后处理"两阶段
│ ├── need_used_api.md ← 依赖接口清单与对外契约
│ └── source_boundary.md ← 模型来源与输入来源的边界
└── .github/workflows/validate.yml ← CI:qsh-form + pytest + 5 步负路径反向断言
# 1. 安装运行期依赖(国内务必走镜像,pypi.org 直连经常超时)
pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
# 2. 环境自检 —— 退出 0=就绪 1=阻塞 2=仅告警仍可用
python3 scripts/env_check.py --self-check --json
# 3. 转录
python3 scripts/transcribe.py ~/Downloads/meeting.m4a --language zh
# 4. 校验产物契约(不要跳过,见下文)
python3 scripts/validate.py output/meeting.transcript.json --strict
# 5. 由大模型做后处理,写出 meeting.transcript.md
跑单元测试不需要装 faster-whisper(353 例全部走桩件):
pip install -r requirements-dev.txt -i https://mirrors.aliyun.com/pypi/simple/
python3 -m pytest tests/ -q # 约 1 秒
首次转录会自动下载 Systran/faster-whisper-base(约 145MB)。
两阶段,中间不做任何清理:语音模型负责「声音 → 带时间戳的粗糙文字」,大模型负责「粗糙文字 → 可读文稿」。第 1 阶段刻意保留语气词、缺失的标点、按换气停顿切分的 segment——段间时间间隔是第 2 阶段判断句读的证据,删掉就没了。详见 references/methodology.md。
stdout 有且仅有一个 JSON 对象:进度、模型下载日志、依赖告警全部走 stderr。机器消费方可以放心 json.loads(stdout)。这条契约由 test_stdio_contract.py 与 CI 负路径断言双重把守——它曾是 v0.1 的真实缺陷。
失败返回可机读的 error.code:12 个错误码构成稳定枚举,每个都带 message(给人看)与 hint(给可直接执行的修复命令)。调用方读 code 分支处理,不要贴 traceback。
模型五级回退:explicit_path → local_cache → modelscope → hf_mirror → hf_official,命中即不重复下载。国内网络无需任何代理配置。同时识别 faster-whisper 与 ModelScope 两种缓存布局。
阻塞与告警刻意分线:Python ≥ 3.10、faster-whisper / ctranslate2、模型权重缺失为阻塞项(退出 1);系统 ffmpeg、modelscope / huggingface_hub、PyYAML 缺失仅为告警(退出 2)。PyAV 自带静态链接的 ffmpeg,缺它不该在转录前就拦住用户——先试,真的返回 decode_failed 再提示安装。
第 4 步不能跳过:拿一份 segments 为空或时间戳错乱的 JSON 去做后处理,大模型会写出一份格式完美、语气通顺、内容全是编的文档。这比直接报错危险得多。validate.py 报 FAIL 时必须停下来。
零凭据,有 AST 级断言:scripts/ 不读取任何 *_USERNAME / *_TOKEN / *_API_KEY,只读 HF_ENDPOINT / FASTER_WHISPER_MODEL_DIR / FASTER_WHISPER_CACHE_ROOT 三个无害变量。test_contract_files.py 遍历 AST 精确断言这一点,防止后续改动偷偷引入凭据依赖。
| 平台 | 安装指南 |
|---|---|
| Claude Code | INSTALL.md § Claude Code |
| Codex (OpenAI) | INSTALL.md § Codex |
| Cursor | INSTALL.md § Cursor |
| Hermes | INSTALL.md § Hermes |
| OpenClaw | INSTALL.md § OpenClaw |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
video-2-text@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin video-2-textPlugins from other owners that cover similar ground