sanwe

Telegram Offline Voice

Design & Mediav0.1.3
By sanweUpdated 2026-05-174 versions · latest released 2026-02-07telegram-offline-voice@clawhub_sanwecn/telegram-offline-voice
VideoAudio#Telegram

According to AlphaMoat, as of 2026-09, Telegram Offline Voice has 4,710 downloads and 2 stars — ranked #2,016 of 5,078 AI skills overall, and #197 of 512 in Design & Media.

Installs
149
Downloads
4.7K
Stars
2
Overall Rank
#2,016
Top 40% overall · Top 39% in Design & Media
PlatformInstallsDownloadsStarsComments
ClawHub ↗1494.4K2-
SkillHub ↗1494.7K2—

Platforms count differently and update at different times.

What this skill does

The skill uses Microsoft Edge-TTS for Chinese speech, splits longer text at punctuation, and converts text into MP3/OGG audio files. The source describes generation as local but also specifies Edge-TTS; it provides no independent verification of network behavior, so verify the actual data path before processing confidential text. It generates audio files and does not by itself mean a Telegram message is sent. The temporary output directory and voice settings can be configured. The listed environment is Linux and the documented wrapper requires ffmpeg and uv.

Profile published 2026-10-29

What you can do with it

  • Convert narration-ready text into audio files
  • Clean Markdown markers and URLs before generating segmented speech
  • Adjust the voice, speaking rate, or temporary output directory

When to use it

  • When generating a Telegram-compatible voice file from text
  • When dependencies are available and privacy requirements for text processing and network behavior have been checked

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Explain how this text would be cleaned and converted to audio and identify privacy questions to verify. Do not run TTS, generate files, or send a Telegram message.

Monthly Trend

Downloads4.7K
3.8K4.3K4.8K2026-05 · Downloads 3.8K2026-06 · Downloads 4.0K2026-07 · Downloads 4.2K2026-08 · Downloads 4.3K2026-09 · Downloads 4.7K26-0526-09
Stars2
1232026-05 · Stars 22026-06 · Stars 22026-07 · Stars 22026-08 · Stars 22026-09 · Stars 226-0526-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.7K—2
2026-084.3K+3.0%2
2026-074.2K+5.8%2
2026-064.0K+3.6%2
2026-053.8K—2

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.8 KB · ClawHub v0.1.3
---
name: telegram-offline-voice
description: 本地生成 Telegram 语音消息,支持自动清洗、分段与临时文件管理。
metadata: {"openclaw":{"emoji":"🎙️","os":["linux"],"requires":{"bins":["ffmpeg","uv"]}}}
---

# telegram-offline-voice 🎙️

**本地生成,一键封装** — 使用 Microsoft Edge-TTS 生成高质量中文语音,完全离线处理。
Show all (67 lines)
## 💡 为什么需要这个升级?

原生的 TTS 方案通常只能生成 MP3 附件,且无法处理 Markdown 标记和超长文本。本项目通过工程化封装,将“语音合成”进化为“语音交互”:

- **告别标记音**:自动识别并清洗 `**`, `#`, `[link]` 等 Markdown 符号,避免 AI 读出这些“代码噪音”。
- **智能对话流**:超长文本不再是一读到底,而是按句号、感叹号自动切分为多个语音气泡,听感更像真人在发语音。
- **并发安全**:针对多代理/子代理并行调用的场景,使用 UUID 隔离临时文件,彻底杜绝文件读写冲突。
- **零token消耗**:完全基于 Edge-TTS 本地生成,无需 OpenAI/Azure 的付费 Token。

## ✨ 特性

- 🔒 **隐私保护**:100% 本地音频处理,不经过任何额外云端 TTS 提供商。
- 💰 **零token消耗**:使用免费的 Edge-TTS 引擎,省下昂贵的 API 额度。
- 🎯 **一键生成**:内置 `voice_gen.py` 脚本,自动完成“文本->MP3->OGG”的全过程。
- 🧹 **自动清洗**:自动剔除 Markdown 符号和 URL 链接,让朗读更自然。
- ✂️ **智能分段**:超长文本自动按标点符号切分为多个语音气泡。
- 🛡️ **安全并发**:使用 UUID 命名临时文件,支持多代理同时调用。

## 🛠️ 安装依赖

```bash
# 需要 Python 环境和 FFmpeg
sudo apt update && sudo apt install ffmpeg python3-pip -y

# 推荐安装 uv 以极速运行封装脚本
curl -LsSf https://astral.sh/uv/install.sh | sh
```

## 🚀 使用方法 (推荐)

直接调用封装脚本,一键生成 Telegram 原生语音气泡路径:

```bash
uv run {baseDir}/scripts/voice_gen.py --text "您的待播报内容"
```

## ⚙️ 技术细节

### 参数说明
- `--text` / `-t`: 待生成的文本(必填)。
- `--voice`: 声线选择,默认 `zh-CN-XiaoxiaoNeural`(晓晓)。
- `--rate`: 语速调节,默认 `+5%`。
- `--outdir`: 临时文件存放目录,默认 `/tmp`。

### 自动化清洗规则
脚本会自动移除以下内容以确保朗读流畅:
- Markdown 符号:`**`, `*`, `_`, `` ` ``, `#`
- 链接逻辑:`[文本](url)` 以及所有 `http/https` 开头的链接
- 分割线:`---`, `***` 等

---

## 👨💻 关于作者

由 **[@sanwe](https://x.com/sanwe)** 调优并维护。
欢迎关注我的推特获取更多 OpenClaw 进阶玩法:[https://x.com/sanwe](https://x.com/sanwe)

Popular in Design & Media

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.