feishu-voice-sender

飞书语音消息发送工具 - 将音频文件以语音条形式发送到飞书(非文件附件)

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "feishu-voice-sender" with this command: npx skills add wulaosiji/skills/wulaosiji-skills-feishu-voice-sender

Feishu Voice Sender

飞书语音消息发送工具 - 将 MP3 音频以语音条形式发送到飞书聊天。

功能

  • 将 MP3 转换为飞书语音格式(AMR)
  • 上传到飞书获取 file_key
  • 以语音条形式发送(msg_type: voice)
  • 支持私聊和群聊

使用方法

Python API

from skills.feishu_voice_sender import send_voice_message

# 发送语音到群聊
result = send_voice_message(
    audio_path="/tmp/voice.mp3",
    target_id="oc_xxx",  # 群ID
    target_type="chat"
)

# 发送语音到私聊
result = send_voice_message(
    audio_path="/tmp/voice.mp3",
    target_id="ou_xxx",  # 用户ID
    target_type="user"
)

命令行

# 发送到群聊
python3 skills/feishu-voice-sender/feishu_voice_sender.py /tmp/voice.mp3 oc_xxx --chat

# 发送到私聊
python3 skills/feishu-voice-sender/feishu_voice_sender.py /tmp/voice.mp3 ou_xxx --user

技术细节

飞书语音消息流程

  1. 转换格式 - MP3 → AMR(飞书语音格式)
  2. 上传音频 - 获取 file_key
  3. 发送消息 - msg_type: "voice"

与音频文件的区别

方式消息类型用户体验
语音条msg_type: "voice"✅ 点击播放,类似微信语音
音频文件msg_type: "file"❌ 下载后播放

依赖

# 系统依赖
ffmpeg  # 用于格式转换

# Python依赖
pip install requests

配置

读取 ~/.openclaw/config/main.env 中的飞书凭证:

  • FEISHU_APP_ID
  • FEISHU_APP_SECRET

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

find-skills

No summary provided by upstream source.

Repository SourceNeeds Review
General

baoyu-slide-deck

No summary provided by upstream source.

Repository SourceNeeds Review
General

document-hub

No summary provided by upstream source.

Repository SourceNeeds Review
General

nano-banana-2

Nano Banana 2 - Gemini 3.1 Flash Image Preview

Repository Source
42.8K153inferen-sh