Overview
- Skill Key
- helloeveryworlds/feishu-voice-tts
- Author
- helloeveryworlds
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/helloeveryworlds/feishu-voice-tts
- Latest Commit SHA
- d4831eefe8daf200cc1399062ab8895eb5bd3785
将文本通过 MOSS-TTS 转换为语音,并发送到飞书群/个人。支持语音消息格式(带波形条)。
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 feishu-voice-tts 技能。 若已安装,则直接安装 feishu-voice-tts 技能。
# 飞书语音 TTS 技能 当用户要求"给飞书发语音"、"在飞书里读这段话"或类似需求时,执行以下流程: ## 核心流程 1. **MOSS-TTS 生成 WAV** → 2. **ffmpeg 转 opus** → 3. **上传飞书** → 4. **发送语音消息** ## 前置要求 - 系统已安装 `ffmpeg` - 已配置环境变量 `MOSS_API_KEY`(MOSS-TTS API Key) - 飞书配置在 OpenClaw 安装时已自动完成 ## 使用方法 ### 命令行模式 ```bash # 基本用法 python scripts/feishu_tts.py --text "要发送的文本" --chat_id "飞书群ID" # 指定音色 python scripts/feishu_tts.py --text "文本" --voice_id "音色ID" --chat_id "群ID" # 发送给个人(需要 open_id) python scripts/feishu_tts.py --text "文本" --receive_id "用户open_id" --receive_id_type "open_id" ``` ### 参数说明 | 参数 | 必填 | 说明 | |------|------|------| | `--text` | ✅ | 要转语音的文本 | | `--chat_id` | ❌ | 飞书群 ID(与 receive_id 二选一) | | `--receive_id` | ❌ | 接收者 ID(open_id 或 chat_id) | | `--receive_id_type` | ❌ | 接收者类型:`chat_id` 或 `open_id`,默认 `chat_id` | | `--voice_id` | ❌ | MOSS 音色 ID,默认 `2001286865130360832`(周周) | | `--output` | ❌ | 输出文件路径,默认 `feishu_voice.wav` | ## 示例 ```bash # 给飞书群发语音 python scripts/feishu_tts.py --text "你好,我是 AI 助手" --chat_id "oc_xxx" # 给指定用户发语音 python scripts/feishu_tts.py --text "你好" --receive_id "ou_xxx" --receive_id_type "open_id" ``` ## 飞书权限要求 确保飞书应用已开通以下权限: - `im:message:send_as_bot` - 以机器人身份发送消息 - `drive:file:upload` - 上传文件(发送语音消息必需) - `im:message.group:readonly` - 读取群组消息(获取历史记录必需) - `im:chat:readonly` - 读取会话列表 > 注意:需要在飞书开放平台应用配置中添加 `drive:file:upload` 权限并发布。 ## 获取消息历史 ### 脚本:get_history.py 获取飞书群消息历史,按时间排序。 ```bash # 获取最近 24 小时的消息 python scripts/get_history.py --chat_id "oc_xxx" # 获取最近 1 小时的消息 python scripts/get_history.py --chat_id "oc_xxx" --hours 1 # 获取所有消息 python scripts/get_history.py --chat_id "oc_xxx" --all # 只显示 audio 类型的消息 python sc...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.