← 返回
未分类 Key

Minimax Feishu Voice

Send native Feishu voice bubble messages via MiniMax TTS, converting text to 16kHz opus audio and delivering as a playable Feishu audio bubble.
使用 MiniMax TTS 将文本转换为 16kHz opus 音频,以原生飞书语音气泡形式发送可播放的语音消息。
raydoomed
未分类 clawhub v1.0.3 1 版本 100000 Key: 需要
★ 1
Stars
📥 419
下载
💾 0
安装
1
版本
#latest

概述

Feishu Voice Bubble

Send a native Feishu voice message (playable bubble, not attachment) using MiniMax TTS.

Setup

1. Configure voice_config.json

Create ~/.openclaw/workspace/skills/minimax-feishu-voice/voice_config.json:

{
  "voice_id": "female-yujie-jingpin",
  "speed": 1.0,
  "vol": 1.0,
  "pitch": 0,
  "api_key": "YOUR_MINIMAX_API_KEY"
}
  • api_key: 你的 MiniMax TTS API Key(必填)
  • voice_id: 语音ID(见下方列表)
  • speed/vol/pitch: 可选参数

2. Recommended Voice IDs

完整列表:https://platform.minimaxi.com/docs/faq/system-voice-id

Voice IDNameNotes
---------
female-tianmei甜美女性音色甜,温柔,适合撒娇
female-shaonv少女音色年轻可爱
female-yujie御姐音色成熟御姐
female-yujie-jingpin精选御姐音色娇媚型御姐,推荐
female-chengshu成熟女性音色成熟稳重
wumei_yujie妩媚御姐娇媚型御姐
diadia_xuemei嗲嗲学妹撒娇学妹
qiaopi_mengmei俏皮萌妹俏皮可爱
tianxin_xiaoling甜心小玲甜心少女
Korean_SweetGirl韩系甜妹异域风情

默认值:female-yujie-jingpin

Quick Use

python3 ~/.openclaw/workspace/skills/minimax-feishu-voice/scripts/send_feishu_voice.py "<text>" <飞书用户的open_id>

Example

python3 ~/.openclaw/workspace/skills/minimax-feishu-voice/scripts/send_feishu_voice.py \
  "你好,这是一条语音消息" \
  "<飞书用户的open_id>"

How It Works

  1. Reads api_key from voice_config.json
  2. Calls MiniMax TTS API → hex audio → MP3
  3. Decodes MP3 → PCM → re-encodes as opus in OGG container at 16kHz (Feishu requirement)
  4. Extracts duration_ms from WAV header
  5. Uploads to Feishu with file_type=opus + duration param → gets file_key
  6. Sends msg_type: "audio" message with file_keynative voice bubble

Prerequisites

  • MiniMax TTS API Key in voice_config.jsonapi_key
  • Feishu channel configured with appId + appSecret in openclaw.json
  • ffmpeg installed with libopus support

Notes

  • Feishu requires 16kHz sample rate (not 32kHz or 24kHz)
  • Duration (ms) must be included in upload request for bubble display
  • User's open_id is available as sender_id in message metadata

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-05-03 09:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

daily-introspection

raydoomed
为OpenClaw代理提供每日自主自我反思与自我提升,自动审查每日对话日志,识别错误并进行改进。
★ 1 📥 464

volcengine-tts-feishu

raydoomed
火山引擎豆包语音合成模型2.0文字转语音,支持多种音色和情感参数以及SSML标记,生成高质量中文语音,支持一键发送飞书语音气泡。采用HTTP单向流式API,稳定可靠。
★ 1 📥 434
productivity

Tavily Search

raydoomed
Tavily 搜索引擎集成,支持 web 搜索、内容提取、实时新闻查询等功能。使用场景:需要搜索最新网络信息、查找实时新闻、获取专业资料、验证事实准确性等。
★ 5 📥 3,131