飞书语音回复
/install jeffli-feishu-voice
Feishu Voice Reply
Create Feishu replies that contain both normal text and a real voice bubble/player. Avoid sending raw mp3 files when the goal is in-chat playback.
Workflow
- Draft the text reply first.
- Keep the visible text and the spoken text aligned.
- Use
scripts/build_feishu_voice.pyto synthesize Chinese speech with Edge TTS and convert it to Ogg/Opus through ffmpeg. - Send the text reply normally.
- Send the generated
.oggfile with the messaging tool as a voice message:mimeType: audio/oggasVoice: true
- If a message id is available, reply to the triggering message for both the text and the voice.
Defaults
- Default language: Chinese
- Default voice:
zh-CN-XiaoxiaoNeural - Default channel behavior: Feishu text message + Feishu voice message
Rules
- 语音文件必须存放在 Workspace 下:使用
/root/.openclaw/workspace/temp/voice/目录,不要用 /tmp。否则飞书只显示文件路径而不是语音播放条。 \x3C\x3C\x3C\x3C\x3C\x3C\x3C HEAD ======= - Emoji 自动过滤:脚本会自动过滤 emoji 字符再合成 TTS,显示的文本保留 emoji,但语音不会朗读 emoji(避免杂音)。无需手动处理。
8d2abf78b8490403831aae82052e8e107054b856
- Always show the text reply as well; do not send voice-only unless the user explicitly asks for that.
- Prefer concise spoken text. If the full answer is long, speak a compact summary and keep the full text visible.
- Use this skill specifically for Feishu playback UX. If the user only wants downloadable audio, normal attachments are fine.
- If synthesis succeeds but voice sending fails, tell the user clearly that Feishu voice delivery failed instead of pretending it worked.
Script
Build a Feishu-compatible voice file
Run:
python3 scripts/build_feishu_voice.py \
--text "今天上海多云,气温十一度。" \
--out-dir /root/.openclaw/workspace/temp/voice
The script prints JSON including:
ogg_path: send this to Feishu as the voice file (必须在 Workspace 下)mp3_path: intermediate filevoice: selected Edge TTS voice
Sending pattern
After building the file:
- Send the visible text reply.
- Send
ogg_pathwith:- channel
feishu path= generatedogg_pathmimeType=audio/oggasVoice=true
- channel
Resource
scripts/build_feishu_voice.py: deterministic synthesis + ffmpeg conversion for Feishu voice playback.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install jeffli-feishu-voice - After installation, invoke the skill by name or use
/jeffli-feishu-voice - Provide required inputs per the skill's parameter spec and get structured output
What is 飞书语音回复?
Generate Feishu-native voice replies with a playable pause/resume bar by synthesizing text, converting it with ffmpeg to Ogg/Opus, and sending it as a voice... It is an AI Agent Skill for Claude Code / OpenClaw, with 137 downloads so far.
How do I install 飞书语音回复?
Run "/install jeffli-feishu-voice" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 飞书语音回复 free?
Yes, 飞书语音回复 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 飞书语音回复 support?
飞书语音回复 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 飞书语音回复?
It is built and maintained by jeffli2002 (@jeffli2002); the current version is v1.0.0.