feishu-voice-skill

让 AI 助手能够给飞书用户发送真正的语音条(点击即播,不是文件附件)。支持 NoizAI TTS 生成语音,自动转换为 OPUS 格式,通过飞书 API 发送语音消息。

3,891 stars

Best use case

feishu-voice-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

让 AI 助手能够给飞书用户发送真正的语音条(点击即播,不是文件附件)。支持 NoizAI TTS 生成语音,自动转换为 OPUS 格式,通过飞书 API 发送语音消息。

Teams using feishu-voice-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/feishu-voice-skill/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/anightmare2/feishu-voice-skill/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/feishu-voice-skill/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How feishu-voice-skill Compares

Feature / Agentfeishu-voice-skillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

让 AI 助手能够给飞书用户发送真正的语音条(点击即播,不是文件附件)。支持 NoizAI TTS 生成语音,自动转换为 OPUS 格式,通过飞书 API 发送语音消息。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Feishu Voice Skill - 飞书语音条技能

让任何 AI 助手都能给飞书用户发送真正的语音条!

## 🎯 功能特点

- ✅ **真正的语音条**:点击即播,不是 MP3 文件附件
- ✅ **NoizAI TTS**:高质量语音合成,支持情感控制
- ✅ **自动转换**:自动将音频转换为 OPUS 格式
- ✅ **一键发送**:封装好的脚本,一行命令发送语音

## 📋 使用场景

- 🌞 语音问候(早安/晚安)
- 📰 语音播报(新闻/天气/股票)
- 📖 语音故事(睡前故事)
- 💬 语音聊天(更亲切的交流)
- 🎤 语音通知(提醒/公告)

## 🔧 前置要求

### 1. Feishu 应用配置

1. 访问 https://open.feishu.cn/app
2. 创建企业自建应用
3. 添加以下权限:
   - `im:message` - 发送消息
   - `im:message:send_as_bot` - 以机器人身份发送
   - `im:resource` - 资源访问
4. 获取 App ID 和 App Secret

### 2. NoizAI API Key

1. 访问 https://developers.noiz.ai/api-keys
2. 创建 API Key
3. 配置到技能中

### 3. 系统依赖

```bash
# 安装 FFmpeg(用于音频转换)
# OpenCloudOS/CentOS
yum install -y ffmpeg

# Ubuntu/Debian
apt-get install -y ffmpeg

# macOS
brew install ffmpeg
```

## 🚀 快速开始

### 步骤 1:配置凭证

```bash
# 设置 Feishu 凭证
export FEISHU_APP_ID="cli_xxxxxxxxxxxxx"
export FEISHU_APP_SECRET="xxxxxxxxxxxxxxxxx"
export FEISHU_CHAT_ID="oc_xxxxxxxxxxxxx"

# 设置 NoizAI API Key(base64 编码)
export NOIZ_API_KEY="your_base64_encoded_api_key"
```

### 步骤 2:发送语音消息

```bash
# 简单模式:输入文字,自动发送语音
bash scripts/send_voice.sh -t "主人晚上好~ 司幼来陪您聊天啦~"

# 指定输出文件
bash scripts/send_voice.sh -t "你好" -o /tmp/voice.opus

# 从文件读取文字
bash scripts/send_voice.sh -f message.txt

# 自定义语音参数
bash scripts/send_voice.sh -t "你好" --speed 1.2 --emotion happy
```

## 📖 命令参数

```bash
bash scripts/send_voice.sh [选项]

选项:
  -t, --text <text>       要转换的文字(必需,除非使用 -f)
  -f, --file <file>       文字文件路径
  -o, --output <file>     输出音频文件路径
  --chat-id <id>          飞书聊天 ID(覆盖环境变量)
  --app-id <id>           飞书 App ID(覆盖环境变量)
  --app-secret <secret>   飞书 App Secret(覆盖环境变量)
  --speed <1.0>           语速(0.5-2.0,默认 1.0)
  --emotion <neutral>     情感(happy/sad/angry/neutral)
  --no-send              只生成音频,不发送
  -h, --help             显示帮助信息
```

## 💡 使用示例

### 1. 发送早安问候

```bash
bash scripts/send_voice.sh -t "主人早上好~ 新的一天开始啦,今天也要加油哦~"
```

### 2. 发送天气预报

```bash
bash scripts/send_voice.sh -t "主人,今天上海晴天,气温 15 到 25 度,适合出门哦~"
```

### 3. 发送睡前故事

```bash
bash scripts/send_voice.sh -f story.txt --speed 0.9
```

### 4. 批量发送

```bash
# 创建消息列表
echo "早安" > messages.txt
echo "午安" >> messages.txt
echo "晚安" >> messages.txt

# 循环发送
while read line; do
  bash scripts/send_voice.sh -t "$line"
done < messages.txt
```

## 🔑 获取 Chat ID

```bash
# 方法 1:从飞书开放平台查看
# 访问 https://open.feishu.cn/app,查看应用信息

# 方法 2:通过 API 获取
curl -X GET "https://open.feishu.cn/open-apis/im/v1/chats?user_id=ou_xxx&user_id_type=open_id" \
  -H "Authorization: Bearer <tenant_access_token>"
```

## 🎨 高级用法

### 1. 使用自定义声音

```bash
# 使用参考音频克隆声音
bash scripts/send_voice.sh -t "你好" --ref-audio ./my_voice.wav
```

### 2. 情感控制

```bash
# 快乐的情感
bash scripts/send_voice.sh -t "太棒了!" --emotion happy

# 悲伤的情感
bash scripts/send_voice.sh -t "我很难过..." --emotion sad
```

### 3. 定时发送

```bash
# 每天早上 8 点发送早安
crontab -e
# 添加:0 8 * * * /path/to/send_voice.sh -t "主人早上好~"
```

## 📦 文件结构

```
feishu-voice-skill/
├── SKILL.md              # 本文件
├── reference.md          # API 参考文档
├── scripts/
│   └── send_voice.sh     # 主脚本
└── examples/
    ├── morning.sh        # 早安示例
    ├── news.sh           # 新闻播报示例
    └── story.sh          # 故事示例
```

## ⚠️ 注意事项

1. **音频格式**:必须使用 OPUS 格式,飞书才能识别为语音条
2. **时长限制**:语音消息最长 60 秒
3. **文件大小**:单个文件不超过 20MB
4. **频率限制**:避免短时间内发送大量消息
5. **权限**:确保应用有发送消息的权限

## 🐛 故障排除

### 问题 1:发送失败,显示"Invalid request param"

**解决**:检查 `file_type=opus` 参数是否正确

### 问题 2:收到的是 MP3 文件,不是语音条

**解决**:确保音频是 OPUS 格式,不是 MP3

### 问题 3:Token 过期

**解决**:重新获取 tenant_access_token

### 问题 4:没有权限上传文件

**解决**:在飞书开放平台添加文件上传权限

## 📞 支持

- GitHub Issues: https://github.com/your-repo/feishu-voice-skill
- 文档:https://your-docs.com
- 示例:examples/ 目录

## 💰 授权

- 个人使用:免费
- 商业使用:请联系作者获取授权

---

**Made with ❤️ by 司幼 (SiYou)**

Related Skills

Invoice Generator

3891
from openclaw/skills

Creates professional invoices in markdown and HTML

Workflow & Productivity

brand-voice-generator

3891
from openclaw/skills

Creates consistent brand voice guidelines and content. Generates copy that matches your brand personality across all channels. Perfect for startups building their identity.

Content & Documentation

invoice-ocr

3891
from openclaw/skills

发票 OCR 识别技能。扫描文件夹中的发票文件(PDF/图片),调用阿里云 OCR API 识别发票信息并导出到 Excel 表格。支持 17+ 种发票类型(增值税发票、火车票、出租车票、机票行程单、定额发票、机动车销售发票、过路过桥费发票等)。使用场景:(1) 用户提到"发票识别"、"发票统计"、"发票整理"、"发票汇总" (2) 用户需要批量处理发票 (3) 用户提到阿里云 OCR 识别发票。**重要:首次使用必须先配置阿里云凭证,主动向用户索要 AccessKey ID 和 AccessKey Secret,或引导用户运行 --config 命令自行配置。**

Workflow & Productivity

Bland AI — Voice Calling Skill

3891
from openclaw/skills

Make and manage AI-powered phone calls via the Bland AI API.

Workflow & Productivity

afrexai-invoice-engine

3880
from openclaw/skills

Generate, manage, and track professional invoices with payment terms, recurring billing, overdue automation, and financial reporting. Use when creating invoices, tracking payments, managing clients, or reviewing revenue.

Workflow & Productivity

feishu-perm-helper

3891
from openclaw/skills

一键启用飞书权限管理工具,让 OpenClaw 可以管理飞书文档/表格的协作者权限。

voice-tts

3891
from openclaw/skills

语音输入(Whisper ASR)+ 语音输出(Edge TTS)技能,支持 agent 专属音色,可调用 send_voice_reply.mjs 发送 Telegram 语音消息。

amber-voice-assistant

3891
from openclaw/skills

AI phone assistant and virtual receptionist for OpenClaw. Answers inbound phone calls, screens callers, makes outbound phone calls, and books appointments — all over Twilio + OpenAI Realtime voice. Full telephone workflow: phone call screening, live call transcripts, CRM contact memory, calendar integration. Ideal for anyone who wants an AI to answer their phone, handle call screening, or make phone calls autonomously. Includes interactive setup wizard, live call dashboard, and human-in-the-loop escalation. Also ships as a Claude Desktop MCP plugin — dial phone numbers, check call history, query CRM, and manage calendar directly from Claude Desktop.

feishu-leave-request

3891
from openclaw/skills

Submit a leave request through Feishu (Lark). Use when the user wants to request time off, submit a leave application, or mentions taking leave.

Feishu SuperToolkit

3891
from openclaw/skills

飞书超级工具包 - 集成文件发送(含音频卡片)、日历、审批、多维表格、通讯录、考勤六大模块

feishu-send

3891
from openclaw/skills

飞书发送图片/文件/语音。用 curl 调用飞书 API 发送,比 message 工具更可靠。用于需要发送图片、文件、语音到飞书时触发。

discord-voice

3891
from openclaw/skills

Real-time voice conversations in Discord voice channels with Claude AI