← Back to Plugins
Voice

Feishu Voice

LeeMeo By LeeMeo 👁 32 views ▲ 0 votes

OpenClaw Feishu voice plugin with speech-to-text and smart voice replies

GitHub

Install

pip install -U

Configuration Example

{
  "channels": {
    "feishu": {
      "voiceReply": {
        "enabled": true,
        "mode": "smart",
        "whisper": {
          "command": "whisper",
          "model": "base",
          "language": "zh"
        },
        "maxVoiceLength": 200,
        "alwaysSummarizeCode": true,
        "summarizeDocs": true,
        "summaryMaxLength": 50
      }
    }
  }
}

README

# OpenClaw Feishu Voice Plugin

飞书语音支持插件,为 OpenClaw 添加语音消息转录和智能语音回复功能。

## Features

- **语音转文字 (STT)**: 使用本地 Whisper CLI 转录音频消息(免费)
- **智能语音回复**:
  - `text` 模式:只发送文字
  - `voice` 模式:短回复发送语音
  - `smart` 模式:长内容发送文字 + 语音摘要(推荐)

## Installation

```bash
openclaw plugins install @openclaw/feishu-voice
```

或从源码安装:

```bash
openclaw plugins install ./openclaw-feishu-voice
```

## Configuration

编辑 `~/.openclaw/openclaw.json`:

```json
{
  "channels": {
    "feishu": {
      "voiceReply": {
        "enabled": true,
        "mode": "smart",
        "whisper": {
          "command": "whisper",
          "model": "base",
          "language": "zh"
        },
        "maxVoiceLength": 200,
        "alwaysSummarizeCode": true,
        "summarizeDocs": true,
        "summaryMaxLength": 50
      }
    }
  }
}
```

## Requirements

- **Whisper CLI**: 用于语音转文字
  ```bash
  # macOS
  brew install whisper
  
  # Linux/Windows
  pip install -U openai-whisper
  ```

- **TTS 配置**: 用于发送语音回复
  ```json
  {
    "messages": {
      "tts": {
        "provider": "openai",
        "openai": { "voice": "alloy" }
      }
    }
  }
  ```

## License

MIT
voice

Comments

Sign in to leave a comment

Loading comments...