📦 飞书TTS Pro

v1.0.0

将文字转为语音并通过飞书语音气泡发送。用 Edge-TTS(微软,免费不限次)生成中文语音,FFmpeg 转码为 ogg/opus,上传至飞书作为 audio 消息。支持自定义音色、接收者和 Python 环境。用户要求语音回复、发语音或 TTS 朗读时触发。

0· 0·0 当前·0 累计
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
medium confidence
该技能的代码与其声明的功能(通过 edge-tts 生成 TTS、用 ffmpeg 转码、上传至 Feishu)相符,但存在元数据/指令不一致以及缺少声明的二进制文件(ffprobe),导致包不完整,需谨慎使用。
评估建议
This 技能's code 应用ears to do what it clAIms, but there are small incoherences you should 添加ress before 安装ing: 1) The registry marks EDGE_TTS_VOICE, PYTHON_BIN, and FEISHU_DEFAULT_USER as required env vars even though the README and script treat them as optional — don't provide more secrets than necessary; only FEISHU_应用_ID and FEISHU_应用_SECRET are essential. 2) The script calls ffprobe to measure duration but the metadata only requires ffmpeg; ensure ffprobe is avAIlable or 添加 it to the requireme...
详细分析 ▾
用途与能力
Name/description, 技能.md, and the included bin/tts-发送.js are consistent: they 生成 TTS via edge-tts, transcode with FFmpeg, and 上传/发送 audio to Feishu. 请求ing FEISHU_应用_ID and FEISHU_应用_SECRET is 应用ropriate for Feishu integration.
指令范围
运行time instructions and the script stay within the 状态d scope: they spawn Python to 运行 edge-tts, call ffmpeg/ffprobe for audio processing, write temporary files to the OS temp dir, and call only open.feishu.cn 端点s to 上传 and 发送 messages. There are no unexpected external 端点s or broad file reads.
安装机制
No 安装 spec (instruction-only with a 辅助工具 script). The 技能.md documents 安装ing edge-tts via pip; nothing is 下载ed from arbitrary URLs. This is low 安装 risk.
凭证需求
Registry metadata 列出s FEISHU_应用_ID, FEISHU_应用_SECRET, FEISHU_DEFAULT_USER, EDGE_TTS_VOICE, and PYTHON_BIN as required env vars, but 技能.md and the script treat FEISHU_DEFAULT_USER, EDGE_TTS_VOICE, and PYTHON_BIN as optional (have defaults). The mismatch is confusing and could cause over-provisioning of secrets. The only truly necessary secrets for Feishu are the 应用 ID/Secret.
持久化与权限
always is false and the 技能 does not 请求 系统-wide configuration or permanently modify other 技能s. The 技能 uses temporary files and obtAIns transient tenant_访问_令牌 from Feishu — expected behavior for this function.
bin/tts-send.js:129
Shell command execution 检测ed (child_process).
bin/tts-send.js:26
环境 variable 访问 combined with network 发送.
bin/tts-send.js:90
File read combined with network 发送 (possible exfiltration).
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install feishu-tts-pro
镜像加速npx clawhub@latest install feishu-tts-pro --registry https://cn.longxiaskill.com

技能文档

feishu-tts-pro 将中文文字转换为语音,直接发送为飞书语音气泡消息。

使用方法 # 发送语音消息(默认发送给 FEISHU_DEFAULT_USER) tts-send "你好,这是番茄的语音回复" # 发送给指定用户 tts-send "你好" ou_xxxxx

环境变量(必填) 变量 | 说明 ---|--- FEISHU_APP_ID | 飞书应用 App ID FEISHU_APP_SECRET | 飞书应用 App Secret FEISHU_DEFAULT_USER | 默认接收者的 open_id(可选,未提供时需要命令行参数)

环境变量(可选) 变量 | 默认值 | 说明 ---|---|--- EDGE_TTS_VOICE | zh-CN-YunxiNeural | Edge-TTS 音色 PYTHON_BIN | 系统 Python | Python 路径(用于 edge-tts)

可选音色 音色 | 说明 ---|--- zh-CN-YunxiNeural | 云希(男声,活泼阳光,默认) zh-CN-XiaoxiaoNeural | 晓晓(女声,温和) zh-CN-YunyangNeural | 云扬(男声,专业) zh-CN-XiaoyiNeural | 晓逸(女声,甜美) zh-CN-tianxiangNeural | 天祥(男声,大气)

技术流程 Edge-TTS 生成 MP3(使用指定音色) FFmpeg 转码为 ogg/opus(16kHz, mono, 飞书兼容) 上传到飞书(file_type=opus,duration 嵌入) 发送 audio 消息气泡

依赖 Node.js 18+ Python 3.8+ + edge-tts(pip install edge-tts) FFmpeg(系统安装)

安装 edge-tts pip install edge-tts 或使用 uv: uv pip install edge-tts --python /path/to/your/python

配置示例 在 AGENTS.md 或 openclaw.json 中配置: { "skills": { "entries": { "feishu-tts-pro": { "env": { "FEISHU_APP_ID": "cli_xxxxxxxxxxxx", "FEISHU_APP_SECRET": "xxxxxxxxxxxxxxxx", "FEISHU_DEFAULT_USER": "ou_xxxxxxxxxxxx", "EDGE_TTS_VOICE": "zh-CN-YunxiNeural" } } } } }

故障排除 TTS 生成失败 确认 edge-tts 已安装:python -c "import edge_tts" 确认 Python 路径正确

语音气泡无时长显示 上传时需要传入 duration 参数(毫秒) 脚本已自动处理

发送失败 (code=99991663) 检查 App ID/Secret 是否正确 确认飞书应用已开通「发消息」权限

Powered by 番茄 (OpenClaw Agent)

数据来源ClawHub ↗ · 中文优化:龙虾技能库