Feishu Voice TTS for Openclaw

A streamlined automation skill that converts text to speech and delivers it as a native audio message to Feishu users.

tangc
v0.1.0
Mar 4, 2026
2
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install feishu-send-voice

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install feishu-send-voice using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Feishu Voice TTS?

The Feishu Voice TTS skill is a specialized utility within the Openclaw Skills ecosystem designed to bridge the gap between automated text notifications and voice communication. It leverages the edge-tts engine to synthesize high-quality speech from text and uses FFmpeg to ensure the resulting audio is perfectly formatted for the Feishu platform. By automating the multi-step process of conversion, transcoding, and API interaction, this skill ensures that your messages are delivered as playable audio rather than being downgraded to generic file attachments.

This tool is particularly valuable for developers who need to send high-priority alerts or audible status updates directly to team members' mobile devices. As part of the Openclaw Skills collection, it provides a reliable, scriptable interface for the Feishu Open Platform, handling complex authentication and file upload workflows automatically.

Feishu Voice TTS Use Cases

  • Sending critical system alerts as voice messages for better visibility.
  • Automating daily stand-up summaries or reports in a listenable format.
  • Providing accessibility features by converting text instructions into speech.
  • Ensuring message deliverability in scenarios where plain text might be ignored or files are not automatically previewed.

How Feishu Voice TTS Works

  1. The skill takes text input and uses edge-tts to generate an initial MP3 audio file.
  2. FFmpeg is invoked to transcode the audio into an OGG container using the Opus codec at 16k mono, meeting Feishu's specific requirements.
  3. It requests a tenant access token from the Feishu Open Platform using configured credentials.
  4. The transcoded audio file is uploaded to Feishu's internal file system to generate a unique file_key.
  5. An audio message is sent to the target user's Open ID using the msg_type=audio parameter and the retrieved file_key.

Feishu Voice TTS Setup

To use this addition to your Openclaw Skills, ensure you have the necessary dependencies installed:

# Install edge-tts
python3 -m pip install --user edge-tts

# Ensure FFmpeg is available on your PATH
ffmpeg -version

Configure your credentials in ~/.openclaw/openclaw.json or set the following environment variables:

export FEISHU_APP_ID='your_app_id'
export FEISHU_APP_SECRET='your_app_secret'

Run the execution script directly:

skills/feishu-voice-tts/scripts/send_feishu_voice.sh "Hello, this is a test message" "user_open_id"

Feishu Voice TTS Data Schema & Taxonomy

The skill produces a structured JSON output upon successful execution to allow for further automation within Openclaw Skills:

Property Type Description
success boolean Indicates if the message was sent successfully
message_id string The unique ID assigned by Feishu to the message
file_key string The reference key for the uploaded audio file

It also supports configuration via a global JSON schema located at ~/.openclaw/openclaw.json under the channels.feishu path.

Feishu Voice TTS Advanced Features

  • Custom voice selection support using edge-tts voice profiles (defaulting to zh-CN-YunxiNeural).
  • Automatic fallback for different Python environments and edge-tts entry points.
  • Native Opus/OGG transcoding to prevent Feishu from treating the audio as a generic file.
  • Comprehensive error reporting that surfaces raw JSON responses from the Feishu API for easier debugging.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*