npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

voscript-skills

v1.2.8

Published

VoScript API skill package for AI agents — agent-agnostic helpers for transcription, voiceprint management, and export

Readme

🌐 English · 中文

VoScript Skills 🧰

「你有 VoScript,也有 AI 代理——但它们还不互通。」

一条命令装好,任意 AI 代理(Claude Code、Trae、Cursor……)立即能操作 VoScript。 覆盖完整工作流:提交音频、轮询任务、导出字幕、管理声纹库。 纯 Python + requests,零额外依赖。

安装 · 快速开始 · 支持的代理 · 主项目


你是不是遇到过这个

部署了 VoScript,也在用 AI 代理做任务——但要让代理自己提交录音、等结果、导出字幕,得先写一堆接口胶水代码。

或者——代理调了一下接口,发现不知道该用哪个 endpoint,不知道 job 什么时候完成,不知道声纹注册时 speaker_label 和显示名有什么区别。

这个技能包解决的就是这个。加载一次,代理自动掌握完整 VoScript 工作流。


安装

方式一:npx(推荐)

npx voscript-skills

默认安装到 ~/.claude/skills/voscript-api/,Claude Code 自动识别。

一键为所有已检测到的代理安装:

npx voscript-skills --all

指定代理或目录:

npx voscript-skills --agent codex     # 完整代理列表见下方表格
npx voscript-skills --dir /custom/skills/path

更新已安装的 skill:

npx voscript-skills update --agent codex
npx voscript-skills update --all

卸载:

npx voscript-skills --uninstall

方式二:Git clone

git clone https://github.com/MapleEve/voscript-skills.git ~/.claude/skills/

克隆后 ~/.claude/skills/voscript-api/ 即为技能目录。


支持的代理

安装器对齐 Vercel skills 当前公开的完整 agent 列表。为了兼容旧用法,claudegeminiqwen 仍可作为短别名使用。

| 代理 | --agent | 技能目录 | | --- | --- | --- | | Amp | amp | ~/.config/agents/skills/ | | Kimi Code CLI | kimi-cli | ~/.config/agents/skills/ | | Replit | replit | ~/.config/agents/skills/ | | Universal | universal | ~/.config/agents/skills/ | | Antigravity | antigravity | ~/.gemini/antigravity/skills/ | | Augment | augment | ~/.augment/skills/ | | IBM Bob | bob | ~/.bob/skills/ | | Claude Code | claude-code | ~/.claude/skills/ | | OpenClaw | openclaw | ~/.openclaw/skills/ | | Cline | cline | ~/.agents/skills/ | | Warp | warp | ~/.agents/skills/ | | CodeBuddy | codebuddy | ~/.codebuddy/skills/ | | OpenAI Codex CLI | codex | ~/.codex/skills/ | | Command Code | command-code | ~/.commandcode/skills/ | | Continue | continue | ~/.continue/skills/ | | Cortex Code | cortex | ~/.snowflake/cortex/skills/ | | Crush | crush | ~/.config/crush/skills/ | | Cursor | cursor | ~/.cursor/skills/ | | Deep Agents | deepagents | ~/.deepagents/agent/skills/ | | Droid | droid | ~/.factory/skills/ | | Firebender | firebender | ~/.firebender/skills/ | | Gemini CLI | gemini-cli | ~/.gemini/skills/ | | GitHub Copilot | github-copilot | ~/.copilot/skills/ | | Goose | goose | ~/.config/goose/skills/ | | Junie | junie | ~/.junie/skills/ | | iFlow CLI | iflow-cli | ~/.iflow/skills/ | | Kilo Code | kilo | ~/.kilocode/skills/ | | Kiro CLI | kiro-cli | ~/.kiro/skills/ | | Kode | kode | ~/.kode/skills/ | | MCPJam | mcpjam | ~/.mcpjam/skills/ | | Mistral Vibe | mistral-vibe | ~/.vibe/skills/ | | Mux | mux | ~/.mux/skills/ | | OpenCode | opencode | ~/.config/opencode/skills/ | | OpenHands | openhands | ~/.openhands/skills/ | | Pi | pi | ~/.pi/agent/skills/ | | Qoder | qoder | ~/.qoder/skills/ | | Qwen Code | qwen-code | ~/.qwen/skills/ | | Roo Code | roo | ~/.roo/skills/ | | Trae | trae | ~/.trae/skills/ | | Trae CN | trae-cn | ~/.trae-cn/skills/ | | Windsurf | windsurf | ~/.codeium/windsurf/skills/ | | Zencoder | zencoder | ~/.zencoder/skills/ | | Neovate | neovate | ~/.neovate/skills/ | | Pochi | pochi | ~/.pochi/skills/ | | AdaL | adal | ~/.adal/skills/ | | 其它 | — | 使用 --dir 指定 |

本包额外保留历史目标:hermes -> ~/.hermes/skills/


你会得到什么

12 个即用脚本,覆盖完整工作流

| 脚本 | 功能 | | --- | --- | | submit_audio.py | 提交音频文件,返回 job ID | | poll_job.py | 带进度条轮询,自动等待完成 | | fetch_result.py | 获取完整转写结果(含说话人) | | export_transcript.py | 导出 SRT / TXT / JSON | | list_transcriptions.py | 列出所有转写记录 | | enroll_voiceprint.py | 注册声纹(含 speaker_label 避坑提示) | | list_voiceprints.py | 列出已注册声纹 | | assign_speaker.py | 手动分配片段说话人 | | manage_voiceprint.py | 查看 / 重命名 / 删除声纹 | | rebuild_cohort.py | 重建 AS-norm cohort | | public_release_scan.py | 扫描公开发布材料里的隐私泄露 | | common.py | 基础客户端 + 诊断工具 |

每个脚本在失败时输出结构化诊断报告——明确告诉代理哪里出了问题、怎么修。


VoScript 兼容说明

本包同步 VoScript v0.8.4 行为。公开工作流仍是提交任务 → 轮询 → 获取/导出结果 → 管理声纹,同时 skill 已同步当前运行时默认值、Rust kernel foundation、发布镜像 wheel 打包、alignment 隔离、幻觉过滤、embedding 音频读取和依赖基线修复:

  • MODEL_IDLE_TIMEOUT_SEC=180 表示 GPU 模型默认空闲 3 分钟后卸载;设为 0 可让模型常驻。
  • Docker Compose 默认请求 Docker 暴露的所有 NVIDIA GPU,不再注入 CUDA_VISIBLE_DEVICES=0;需要限制可见卡时只通过本地 override 或显式 operator env。
  • DEVICE=cuda 表示 ASR/faster-whisper、diarization/pyannote、embedding/WeSpeaker 会在各自 lazy load 时分别选择当前可见 GPU 中空闲显存最多的设备;cuda:0 等显式索引保持固定。
  • WhisperX forced alignment 默认 WHISPERX_ALIGN_DEVICE=cpu,把词级 alignment 与 GPU ASR/diarization/embedding 运行时隔离;只有 operator 明确需要时才设为 pipelineasrcudacuda:0
  • faster-whisper 即使面对内部 torch 设备 cuda:N,加载时也会收到 device="cuda"device_index,避免 unsupported cuda:0
  • pyannote diarization 在完整本地 Hugging Face snapshot 存在时会使用 runtime-localized config,使内嵌 segmentation / embedding 也指向本地权重。
  • ASR guard 会过滤短单段 stock outro 幻觉,例如点赞、订阅、转发、打赏、感谢观看等尾巴标记高度集中的非重复幻觉,同时保留长会议中的正常上下文词。
  • speaker embedding 提取会优先用 soundfile 一次性读取规范化 WAV,再按 diarization turn 切片;读取失败时回退 torchaudio 分段加载。
  • 运行时依赖基线从 yanked WhisperX 3.1.x 迁到兼容的非 yanked WhisperX 3.3.1 路径,并收紧相邻依赖边界。
  • 发布 Docker 镜像包含 voscript_core wheel;RUST_KERNEL_MODE 默认仍为 off,因此 Rust kernel bridge 先作为可验证 foundation / release gate 路径存在,不改变稳定 HTTP API。
  • 并发去重仍需轮询、持久化 AS-norm cohort、AS-norm 无界分数、PyTorch 2.6 checkpoint 安全加载、新声音 AS-norm 验证模式仍适用。

本包不承诺 provider preset/API 选择、streaming session 或完整 speaker memory 已完成;这些仍属于后续版本工作。


公开发布检查

开 PR、发布文档或整理 live validation 结论前,先运行:

python voscript-api/scripts/public_release_scan.py --root /path/to/public/repo

公开文档只写 “internal live validation” 或 “internal benchmark set” 这类匿名化描述。不要发布 roadmap 文件、本地路径、验证日志、语料名、私有远端主机别名、调试端口、真实 job ID、speaker ID、key 或 token。

处理主仓 PR、Release 和 Docker 发布时,隐私扫描后继续读取 voscript-api/references/release-workflow.md。 处理远端部署/调试时,读取 voscript-api/references/remote-debugging.md,只使用其中固定的直连 SSH alias / WAN ProxyCommand 流程。


快速开始

前置条件

配置

export VOSCRIPT_URL=http://localhost:8780
export VOSCRIPT_API_KEY=your_api_key_here

或在每个脚本调用时传入 --url / --api-key

示例

# 提交音频
python voscript-api/scripts/submit_audio.py --file meeting.mp3

# 轮询直到完成
python voscript-api/scripts/poll_job.py --job-id tr_xxxxxxxx

# 获取结果
python voscript-api/scripts/fetch_result.py --tr-id tr_xxxxxxxx

# 导出 SRT
python voscript-api/scripts/export_transcript.py --tr-id tr_xxxxxxxx --format srt

# 注册声纹(用 speaker_label,不是显示名!)
python voscript-api/scripts/enroll_voiceprint.py \
  --tr-id tr_xxxxxxxx \
  --speaker-label SPEAKER_00 \
  --speaker-name "张三"

在 AI 代理中加载

安装到代理的技能目录后,加载 voscript-api/SKILL.md 即可。代理会自动读取工作流定义和脚本用法,无需额外配置。


问题反馈 & 功能建议

本仓库禁用了 Issues 和 Discussions。请前往主项目提交:

github.com/MapleEve/VoScript/issues


License

与 VoScript 主项目相同。详见 LICENSE