# Send feishu-audio to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "feishu-audio",
    "name": "feishu-audio",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tianyn1990/feishu-audio",
    "canonicalUrl": "https://clawhub.ai/tianyn1990/feishu-audio",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/feishu-audio",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-audio",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/send_audio.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "feishu-audio",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T01:19:58.201Z",
      "expiresAt": "2026-05-19T01:19:58.201Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-audio",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-audio",
        "contentDisposition": "attachment; filename=\"feishu-audio-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "feishu-audio"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/feishu-audio"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/feishu-audio",
    "downloadUrl": "https://openagent3.xyz/downloads/feishu-audio",
    "agentUrl": "https://openagent3.xyz/skills/feishu-audio/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-audio/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-audio/agent.md"
  }
}
```
## Documentation

### feishu-audio

将本地音频文件转换为飞书可播放的语音消息。

### 适用场景

用户说"朗读 xxx"、"语音播报"
需要发送可播放的语音消息到飞书

### 前置条件

ffmpeg - 音频格式转换
brew install ffmpeg



飞书应用配置 - 需要以下环境变量：

FEISHU_APP_ID
FEISHU_APP_SECRET



接收者 - 飞书用户 Open ID（从上下文获取或手动指定）

### 方式 1：使用已有音频文件

bash scripts/send_audio.sh <音频文件路径> [接收者OpenID]

### 方式 2：结合 TTS 使用

先生成音频，再用本技能发送：

# 1. 用 edge-tts 生成音频
edge-tts -t "你好，我是小曦" -v zh-CN-XiaoxiaoNeural --write-media /tmp/voice.mp3

# 2. 转为 opus 并发送到飞书
bash scripts/send_audio.sh /tmp/voice.mp3

### send_audio.sh

主脚本，完整的音频消息发送流程。

参数：

$1 - 音频文件路径（必需）
$2 - 接收者 Open ID（可选，默认从环境变量 FEISHU_RECEIVER 获取）

环境变量：

FEISHU_APP_ID - 飞书应用 ID
FEISHU_APP_SECRET - 飞书应用密钥
FEISHU_RECEIVER - 接收者 Open ID（可选）

流程：

检查 ffmpeg 是否可用
检查音频文件是否存在
用 ffmpeg 转换为 opus 格式（飞书要求）
获取飞书 tenant_access_token
上传到飞书（file_type=opus）
发送 audio 消息

### 音频格式要求

飞书语音消息要求：

格式: opus (OGG 容器)
编码: libopus
采样率: 24000 Hz
声道: 单声道

### ffmpeg 未安装

brew install ffmpeg

### 上传失败

检查飞书应用权限：

im:message
im:message:send_as_bot

### 消息发送成功但无法播放

确认：

上传时使用了 file_type=opus
上传时传递了 duration 参数
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tianyn1990
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T01:19:58.201Z
- Expires at: 2026-05-19T01:19:58.201Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/feishu-audio)
- [Send to Agent page](https://openagent3.xyz/skills/feishu-audio/agent)
- [JSON manifest](https://openagent3.xyz/skills/feishu-audio/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/feishu-audio/agent.md)
- [Download page](https://openagent3.xyz/downloads/feishu-audio)