Send native voice messages to WeCom using Windows TTS. Converts text to speech and sends as voice message (not audio file).

WeCom Voice Message Sender

Send native voice messages to WeCom (企业微信) using Windows TTS.

Usage

bash
# Basic
node scripts/send-voice.cjs "要说的内容"

# Specify target user
node scripts/send-voice.cjs "Hello" FanQi

How it works

  1. TTS: Uses Windows System.Speech (Microsoft Huihui voice)
  2. Convert: FFmpeg converts WAV to AMR (WeCom native voice format)
  3. Send: OpenClaw CLI sends from media/inbound directory

Technical Details

  • TTS Voice: Microsoft Huihui Desktop (中文)
  • AMR Format: 8000Hz, mono, 12.2kbit/s
  • Directory: Must send from ~/.openclaw/media/inbound

Files

  • SKILL.md - This file
  • scripts/send-voice.cjs - Main script