Install
openclaw skills install web-tts-speaker网页一键朗读:输入URL或文本,TTS转语音,飞书语音条推送
openclaw skills install web-tts-speaker网页/文字 → TTS语音 → 飞书语音条
一个极简的网页转语音工具,只做三件事:提取文字 → 生成语音 → 输出标记
# 朗读网页
python cli.py --url https://example.com/article
# 直接文字转语音
python cli.py --text "你好世界"
脚本输出 [FEISHU_VOICE] 标记供 Cron/Agent 读取:
[FEISHU_VOICE]
file=/path/to/voice.opus
text=标题...
[/FEISHU_VOICE]
Agent 读取后用 message 工具发送飞书语音条:
message(
action: "send",
channel: "feishu",
asVoice: true,
filePath: "/path/to/voice.opus"
)
pip install edge-tts beautifulsoup4 requests
也依赖系统安装的 FFmpeg(用于转码为标准 opus 格式)。