← 返回 Skills 市场
144
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install pdf-vocab-audio
功能描述
从 PDF 提取词汇生成朗读音频,每个词组读两遍
安全使用建议
This skill is mostly coherent for generating TTS from a PDF, but two issues deserve attention before installing: (1) The code uses a hardcoded fallback directory (/root/.openclaw/media/inbound) when you don't pass a PDF path — if you don't want the skill to read agent/internal files, always invoke it with an explicit PDF path. (2) The extraction regex does not actually strip Chinese translations as the documentation states, which may produce mixed-language audio. If you plan to use it, run it in an isolated environment first, verify the outputs on sample PDFs, and consider patching the extraction logic (e.g., capture only [A-Za-z ]+ at line start or split on non‑ASCII) and changing the default inbound path to a safer location. Also ensure edge-tts and ffmpeg are installed from trusted sources.
功能分析
Type: OpenClaw Skill
Name: pdf-vocab-audio
Version: 2.0.0
The skill bundle is a legitimate utility for extracting English vocabulary from PDF files and generating audio recordings using edge-tts and ffmpeg. The Python script (pdf_vocab_audio.py) follows security best practices by using parameterized subprocess calls to prevent shell injection, validating dependencies with shutil.which, and utilizing temporary directories for intermediate file processing. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Dependencies (pymupdf for PDF parsing, edge-tts for TTS, ffmpeg for silence/concat) are appropriate for the stated purpose. Requiring edge-tts and ffmpeg is coherent. The SKILL.md install metadata includes pip packages that match runtime needs.
Instruction Scope
SKILL.md promises extracting "only the English part" from each line, but the implemented regex (re.match(r'^([a-zA-Z].*)$')) will capture the entire line starting with a letter — including trailing Chinese — so the code does not actually strip translations as described. Also the script falls back to a hardcoded directory '/root/.openclaw/media/inbound' when no PDF path is supplied; that is an internal path and may give the skill access to files placed in agent/system-owned locations. These two issues are scope mismatches between the spec and the implementation and can lead to surprising behavior or data exposure.
Install Mechanism
This is an instruction-only skill with no external download URLs or extract steps. The SKILL.md lists pip packages (edge-tts, pymupdf) which align with the code. No high-risk installers or remote archives are used.
Credentials
The skill requests no environment variables or credentials, which is appropriate. However, it defaults to reading from a specific internal path (/root/.openclaw/media/inbound) if no PDF is provided — this implicit file access could expose internal files if users don't explicitly pass a path.
Persistence & Privilege
The skill does not request permanent/autonomous enrollment (always:false) and does not modify other skills or system settings. It runs as a one-off script and uses temporary directories for intermediate work; final outputs are written to /tmp by default.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pdf-vocab-audio - 安装完成后,直接呼叫该 Skill 的名称或使用
/pdf-vocab-audio触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
v2.0
v1.2.0
v1.2.0: 修复concat_list.txt路径安全问题
v1.1.0
v1.1.0安全性修复: 添加依赖检查、输入验证、超时保护
v1.0.0
Initial release - PDF词汇朗读音频生成器,支持Apache 2.0 License
元数据
常见问题
Pdf Vocab Audio 是什么?
从 PDF 提取词汇生成朗读音频,每个词组读两遍. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 144 次。
如何安装 Pdf Vocab Audio?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pdf-vocab-audio」即可一键安装,无需额外配置。
Pdf Vocab Audio 是免费的吗?
是的,Pdf Vocab Audio 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Pdf Vocab Audio 支持哪些平台?
Pdf Vocab Audio 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Pdf Vocab Audio?
由 effeceee(@effeceee)开发并维护,当前版本 v2.0.0。
推荐 Skills