
Converts text to speech using edge-tts and sends it as voice messages across chat platforms like Telegram, Discord, Signal, WhatsApp, and Feishu. The main reason this exists is Feishu's quirk: it doesn't support the standard asVoice flag, so you need the dedicated script to get actual voice bubbles instead of file attachments. Discord needs extra waveform data and specific flags or it throws errors. For most other platforms, you generate an ogg file and send it with asVoice=true. Comes with preset voices for Chinese and English, uses ffmpeg for conversion. It's straightforward for simple use cases but you'll need to dig into platform-specific scripts if the basic flow doesn't work.
$ npx -y skills add xmanrui/voice-message --skill voice-message --agent claude-codeInstalls into .claude/skills of the current project.
Send text as voice messages to any chat channel.
edge-tts — Microsoft Edge TTS (pip install edge-tts)ffmpeg / ffprobe — audio conversion and duration detectionzh-CN-XiaoxiaoNeuralen-US-JennyNeuralUse scripts/gen_voice.sh to convert text to an ogg/opus file:
scripts/gen_voice.sh "你好" /tmp/voice.ogg
scripts/gen_voice.sh "Hello" /tmp/voice.ogg en-US-JennyNeural
Arguments: <text> <output.ogg> [voice]
zh-CN-XiaoxiaoNeural.Use the message tool directly:
action=send, asVoice=true, filePath=/tmp/voice.ogg
This works for most channels. Telegram confirmed working.
⚠️ Feishu does NOT support asVoice=true via the message tool. You must use the dedicated script.
Use scripts/send_feishu_voice.sh:
scripts/send_feishu_voice.sh /tmp/voice.ogg <receive_id> <tenant_access_token> [receive_id_type]
Sponsors