返回顶部
c

chinese-tts

Generate Chinese TTS audio and send as Feishu voice message. Use when user asks for voice/audio/语音/播报/朗读 in Chinese, or when sending audio messages via Feishu.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
445
下载量
0
收藏
概述
安装方式
版本历史

chinese-tts

# Chinese TTS Voice Generation Generate natural Chinese speech using Microsoft Edge TTS and send as Feishu voice messages. ## Quick Reference ```bash # 1. Generate MP3 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 /home/clawpi/.local/bin/edge-tts \ --voice zh-CN-YunxiNeural \ --text "你的文本内容" \ --write-media /tmp/output.mp3 # 2. Convert to Opus ffmpeg -i /tmp/output.mp3 -c:a libopus -b:a 64k -ar 48000 \ /home/node/.openclaw/workspace/output.opus -y # 3. Send via Feishu message(asVoice=true, contentType="audio/ogg", filePath="/home/node/.openclaw/workspace/output.opus", filename="output.opus") ``` ## Critical Rules 1. **Always set UTF-8 env vars** — System locale is ISO-8859-1, Chinese text will be corrupted without `LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8` 2. **Must use opus format** — Feishu only treats `.opus` as voice messages; MP3/WAV become file attachments 3. **Must send from workspace** — `/tmp` is not in Feishu's `mediaLocalRoots` whitelist; files there fail silently and fall back to plain text 4. **Use ASCII filenames** — Chinese filenames may cause encoding issues in multipart uploads ## Voice Options | Voice | Gender | Style | |---|---|---| | `zh-CN-YunxiNeural` | Male | Natural, warm (recommended) | | `zh-CN-XiaoxiaoNeural` | Female | Natural, friendly | | `zh-CN-YunjianNeural` | Male | Authoritative | ## For Long Text Write text to a file and use `-f` flag: ```bash echo "长文本内容..." > /tmp/text.txt LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 /home/clawpi/.local/bin/edge-tts \ --voice zh-CN-YunxiNeural -f /tmp/text.txt --write-media /tmp/output.mp3 ``` ## Troubleshooting - **Gibberish audio** → Missing UTF-8 env vars - **File sent as attachment, not voice** → Not opus format, or not from workspace path - **Upload fails silently** → File not in `mediaLocalRoots` (use workspace dir) - **"哈米" instead of "虾米"** → Google TTS (gtts) issue; use edge-tts instead

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 chinese-tts-1776202995 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 chinese-tts-1776202995 技能

通过命令行安装

skillhub install chinese-tts-1776202995

下载 Zip 包

⬇ 下载 chinese-tts v1.0.0

文件大小: 2.27 KB | 发布时间: 2026-4-15 11:10

v1.0.0 最新 2026-4-15 11:10
Edge TTS + Feishu opus voice messages

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部