本地生成 Telegram 语音消息,支持自动清洗、分段与临时文件管理。
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install telegram-offline-voice或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install telegram-offline-voice⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/telegram-offline-voice/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: telegram-offline-voice description: 本地生成 Telegram 语音消息,支持自动清洗、分段与临时文件管理。 metadata: {"openclaw":{"emoji":"🎙️","os":["linux"],"requires":{"bins":["ffmpeg","uv"]}}} ---
本地生成,一键封装 — 使用 Microsoft Edge-TTS 生成高质量中文语音,完全离线处理。
原生的 TTS 方案通常只能生成 MP3 附件,且无法处理 Markdown 标记和超长文本。本项目通过工程化封装,将“语音合成”进化为“语音交互”:
**, #, [link] 等 Markdown 符号,避免 AI 读出这些“代码噪音”。voice_gen.py 脚本,自动完成“文本->MP3->OGG”的全过程。# 需要 Python 环境和 FFmpeg
sudo apt update && sudo apt install ffmpeg python3-pip -y
# 推荐安装 uv 以极速运行封装脚本
curl -LsSf https://astral.sh/uv/install.sh | sh
直接调用封装脚本,一键生成 Telegram 原生语音气泡路径:
uv run {baseDir}/scripts/voice_gen.py --text "您的待播报内容"
--text / -t: 待生成的文本(必填)。--voice: 声线选择,默认 zh-CN-XiaoxiaoNeural(晓晓)。--rate: 语速调节,默认 +5%。--outdir: 临时文件存放目录,默认 /tmp。脚本会自动移除以下内容以确保朗读流畅:
*, , _, ` `, #`文本 以及所有 http/https 开头的链接---, *** 等---
由 @sanwe 调优并维护。 欢迎关注我的推特获取更多 OpenClaw 进阶玩法:https://x.com/sanwe
安装 Telegram Offline Voice 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/telegram-offline-voice/ 目录(个人级,所有项目可用),或 .claude/skills/telegram-offline-voice/(项目级)。重启 AI 客户端后,用 /telegram-offline-voice 主动调用,或让 AI 根据上下文自动发现并使用。
Telegram Offline Voice 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Telegram Offline Voice 可免费安装使用。请查阅仓库了解许可证信息。
本地生成 Telegram 语音消息,支持自动清洗、分段与临时文件管理。
Telegram Offline Voice 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。