编程

TTS WhatsApp

试用

在WhatsApp发40+语言高质量TTS语音消息,自动送达(社区下载版)。🎙️ **High-quality TTS** powered by Piper (40+ languages)。🎵 **Automatic conversion** to OGG/Opus (WhatsApp format)。📤 **Automatic sending** via SkillHub。

它能做什么

在WhatsApp发40+语言高质量TTS语音消息,自动送达(社区下载版)。🎙️ **High-quality TTS** powered by Piper (40+ languages)。🎵 **Automatic conversion** to OGG/Opus (WhatsApp format)。📤 **Automatic sending** via SkillHub。

技能文档

核心功能: 本技能提供送达(社区下载版)等能力。

TTS WhatsApp

Send high-quality text-to-speech voice messages on WhatsApp with automatic delivery. Supports 40+ languages, personal messages, and group broadcasts.

核心能力

  • 🎙️ High-quality TTS powered by Piper (40+ languages)
  • 🎵 Automatic conversion to OGG/Opus (WhatsApp format)
  • 📤 Automatic sending via SkillHub
  • 👥 Group support - Send to individuals or WhatsApp groups
  • 🌍 Multi-language - French, English, Spanish, German, and 40+ more
  • 🧹 Smart cleanup - Auto-delete files after successful send
  • Fast - ~2-3s from command to delivery

📦 Prerequisites

  1. Piper TTS: pip3 install --user piper-tts
  2. FFmpeg: brew install ffmpeg (macOS) or apt install ffmpeg (Linux)
  3. Voice models: Download from
    • Place in ~/.SkillHub/skills/piper-tts/models/
    • Example: fr_FR-siwis-medium.onnx

使用流程

Basic usage

tts-whatsapp "Hello, this is a test" --target "+15555550123"

Send to WhatsApp group

tts-whatsapp "Hello everyone" --target "120363257357161211@g.us"

Change language

tts-whatsapp "Hola mundo" --lang es_ES --voice carlfm --target "+34..."

Different quality levels

tts-whatsapp "High quality" --quality high --target "+1..."

🌍 Supported Languages

  • 🇫🇷 French (fr_FR): siwis, upmc, tom
  • 🇬🇧 English GB (en_GB): alan, alba
  • 🇺🇸 English US (en_US): lessac, amy, joe
  • 🇪🇸 Spanish (es_ES, es_MX): carlfm, davefx
  • 🇩🇪 German (de_DE): thorsten, eva_k
  • 🇮🇹 Italian (it_IT): riccardo
  • 🇵🇹 Portuguese (pt_BR, pt_PT): faber
  • 🇳🇱 Dutch (nl_NL): mls, rdh
  • 🇷🇺 Russian (ru_RU): dmitri, irina
  • And 30+ more!

🔧 Configuration

Configure in ~/.SkillHub/SkillHub.json:

{
  "skills": {
    "entries": {
      "tts_whatsapp": {
        "enabled": true,
        "env": {
          "WHATSAPP_DEFAULT_TARGET": "+15555550123",
          "PIPER_DEFAULT_LANG": "en_US",
          "PIPER_DEFAULT_VOICE": "lessac",
          "PIPER_DEFAULT_QUALITY": "medium"
        }
      }
    }
  }
}

🎛️ All Options

--target NUMBER       WhatsApp number or group ID
--message TEXT        Text message with audio
--lang LANGUAGE       Language (default: fr_FR)
--voice VOICE         Voice name (default: auto)
--quality QUALITY     x_low, low, medium, high
--speed SPEED         Playback speed (default: 1.0)
--no-send            Don't send automatically

📊 Performance

~2.3s total for a 10-second message:

  • TTS generation: ~1s
  • Format conversion: ~0.2s
  • WhatsApp delivery: ~1s

📚 Full Documentation

See for complete documentation, examples, and troubleshooting.

依赖说明

运行环境

  • Agent平台: 支持SKILL.md的任意AI Agent( Code / Cursor / Codex / CLI等)
  • 操作系统: Windows / macOS / Linux

依赖说明

依赖项类型是否必需获取方式
LLM APIAPI必需由Agent内置LLM提供

API Key 配置

  • 本Skill基于Markdown指令,无需额外API Key(除内容中明确标注的外部API)

可用性分类

  • 分类: MD+execute(纯Markdown指令,部分功能需要exec命令行执行能力)
  • 说明: 基于Markdown的AI Skill,通过自然语言指令驱动Agent执行任务

适用场景

场景输入输出
基础使用用户请求处理结果

不适用于:需要人工判断的复杂决策场景

示例

示例1:基础用法

# 请参考上方使用说明进行配置和调用
result = "ready"
```bash
tts-whatsapp "Hello, this is a test" --target "+15555550123"

请参考上方使用说明进行配置和调用

result = "ready"

tts-whatsapp "Hello everyone" --target "120363257357161211@g.us"

请参考上方使用说明进行配置和调用

result = "ready"

tts-whatsapp "Hola mundo" --lang es_ES --voice carlfm --target "+34..."

请参考上方使用说明进行配置和调用

result = "ready"

tts-whatsapp "High quality" --quality high --target "+1..."

请参考上方使用说明进行配置和调用

result = "ready"


## 错误处理

| 错误场景 | 原因 | 处理方式 |
|---------|------|---------|
| 配置错误 | 参数缺失或格式错误 | 检查依赖说明中的配置要求 |
| 运行时错误 | 运行环境不满足 | 确认运行环境符合依赖说明 |
| 网络错误 | 连接超时或不可达 | 检查网络连接后重试,参考国内替代方案 |

## 常见问题

### Q1: 如何开始使用TTS WhatsApp?
A: 请先阅读使用流程章节,确认环境满足依赖说明中的要求。

### Q2: 遇到错误怎么办?
A: 请参考错误处理章节,按照表格中的处理方式操作。

### Q3: TTS WhatsApp有什么限制?
A: 请参考已知限制章节了解具体限制。

## 已知限制

- 需要LLM支持,无LLM环境无法使用
- 复杂场景可能需要人工辅助判断
- 性能取决于底层模型能力

---
## 边界条件与限制

### 输入限制
- **消息长度**:由于WhatsApp的消息长度限制,生成的TTS语音消息文本长度不应超过4000个字符。
- **语言支持**:虽然支持40多种语言,但某些特定语言可能没有可用的语音模型,导致无法生成语音消息。
- **目标限制**:一次只能向一个WhatsApp号码或一个WhatsApp群组发送消息。

### 性能边界
- **并发发送**:同时向多个目标发送消息时,性能可能会受到影响,因为每个消息都需要单独处理。
- **网络延迟**:网络延迟可能会影响消息的发送时间,尤其是在网络条件不佳的情况下。

### 兼容性约束
- **WhatsApp版本**:需要使用支持发送语音消息的WhatsApp客户端,且客户端版本需更新至最新。
- **操作系统**:目前仅支持Windows、macOS和Linux操作系统。

### 其他限制
- **隐私保护**:由于技能使用WhatsApp发送消息,用户需确保遵守WhatsApp的隐私政策。
- **法律法规**:使用该技能发送消息需遵守相关国家的法律法规,不得用于发送违法信息。
---

相关技能

Create text-to-speech narration and MP3 audio with UnlimitedTTS using x402 USDC payments. Use for text-to-speech, narration, read-aloud, voice generation, MP3 creation, UnlimitedTTS, or wallet-paid/x402 speech requests.

1 次安装1 星标

WhatsApp 消息工具(免费版)面向个人用户与独立开发者,封装 WhatsApp CLI 的基础消息能力:文本消息发送、文件发送、聊天列表查询、消息搜索与基础认证流程。通过命令行工具驱动,可分析提升工作效率 WhatsApp Web 协议,无需外部服务。Use when 需要SEO优化、关键词分析、排名提升、搜索流量优化时使用。不适用于黑帽SEO手段.

Send real WhatsApp VOICE NOTES (not audio files) from an OpenClaw agent. Use when the user asks the agent to 'send a voice message/note', reply by voice, or...

WhatsApp GIF 表情搜索发送工具,支持 Tenor/Giphy 搜索并自动转换为 MP4 格式发送,适合个人日常聊天使用。Use when 需要SEO优化、关键词分析、排名提升、搜索流量优化时使用。不适用于黑帽SEO手段。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开即用。

确保发往WhatsApp的消息遵循平台特定格式语法(社区下载版)。Skill to ensure all messages sent to WhatsApp follow the platform's。触发关键词: ensure, whatsapp, sent, styling, guide, styler, messages, skill'。

Text-to-speech generation via Qwen3-TTS over SSH. Preset voices, voice cloning, voice design. Use when the user wants to generate speech audio, clone voices, or work with TTS.

55 次安装