avatarneil

Discord Voice

生活服務v0.1.6
作者:avatarneil更新於 2026-05-18共 6 個版本 · 最新版本釋出於 2026-02-17discord-voice@clawhub_avatarneil/discord-voice
娛樂推薦#Discord

據 AlphaMoat 統計,截至 2026-10,Discord Voice 累計下載 10,048 次、獲 10 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 2,715 位,在「生活服務」分類(550 個)中排名第 90 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
1萬
星標
10
全站下載量排名
#2,715
全站前 25% · 「生活服務」前 17%
平台累計下載星標評論
ClawHub ↗735692
SkillHub ↗1萬10—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

加入語音訊道後自動檢測說話,把語音轉成文字交給 agent 處理,再把回覆合成語音播報,並支援打斷與斷線重連。語音識別與合成可分別選 OpenAI、Deepgram、ElevenLabs 或本地模型。每個伺服器同一時間只支援一個語音訊道,還需準備 Discord 機器人令牌與 ffmpeg 等系統依賴。

資料釋出於 2026-10-27

可以用來做什麼

  • 在語音訊道里用說話的方式派活給 agent
  • 給團隊頻道加一個能聽會說的助手

什麼時候用

  • 不想打字、想直接用語音對話時
  • 需要在 Discord 內做即時語音互動時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

幫我把這個語音助手接進伺服器頻道
用本地模型做語音識別,不要走雲端

月度資料趨勢

累計下載1萬
495876921萬2026-03 · 累計下載 53352026-05 · 累計下載 63042026-06 · 累計下載 65352026-07 · 累計下載 68842026-08 · 累計下載 71452026-09 · 累計下載 78862026-10 · 累計下載 1萬26-0326-0926-10
星標10
89102026-03 · 星標 82026-05 · 星標 82026-06 · 星標 82026-07 · 星標 102026-08 · 星標 102026-09 · 星標 102026-10 · 星標 1026-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-101萬—10
2026-097886—10
2026-087145+3.8%10
2026-076884+5.3%10
2026-066535+3.7%8
2026-056304—8
2026-035335—8

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

8.8 KB · ClawHub v0.1.6
---
name: discord-voice
description: Real-time voice conversations in Discord voice channels with Claude AI
metadata:
  clawdbot:
    config:
      requiredConfig:
        - discord.token
      optionalEnv:
        - OPENAI_API_KEY
展開全部(共 337 行)
        - ELEVENLABS_API_KEY
        - DEEPGRAM_API_KEY
      systemDependencies:
        - ffmpeg
        - build-essential
      example: |
        {
          "plugins": {
            "entries": {
              "discord-voice": {
                "enabled": true,
                "config": {
                  "sttProvider": "local-whisper",
                  "ttsProvider": "openai",
                  "ttsVoice": "nova",
                  "vadSensitivity": "medium",
                  "streamingSTT": true,
                  "bargeIn": true,
                  "allowedUsers": []
                }
              }
            }
          }
        }
---

# Discord Voice Plugin for Clawdbot

Real-time voice conversations in Discord voice channels. Join a voice channel, speak, and have your words transcribed, processed by Claude, and spoken back.

## Features

- **Join/Leave Voice Channels**: Via slash commands, CLI, or agent tool
- **Voice Activity Detection (VAD)**: Automatically detects when users are speaking
- **Speech-to-Text**: Whisper API (OpenAI), Deepgram, or Local Whisper (Offline)
- **Streaming STT**: Real-time transcription with Deepgram WebSocket (~1s latency reduction)
- **Agent Integration**: Transcribed speech is routed through the Clawdbot agent
- **Text-to-Speech**: OpenAI TTS, ElevenLabs, or Kokoro (Local/Offline)
- **Audio Playback**: Responses are spoken back in the voice channel
- **Barge-in Support**: Stops speaking immediately when user starts talking
- **Auto-reconnect**: Automatic heartbeat monitoring and reconnection on disconnect

## Requirements

- Discord bot with voice permissions (Connect, Speak, Use Voice Activity)
- API keys for STT and TTS providers
- System dependencies for voice:
  - `ffmpeg` (audio processing)
  - Native build tools for `@discordjs/opus` and `sodium-native`

## Installation

### 1. Install System Dependencies

```bash
# Ubuntu/Debian
sudo apt-get install ffmpeg build-essential python3

# Fedora/RHEL
sudo dnf install ffmpeg gcc-c++ make python3

# macOS
brew install ffmpeg
```

### 2. Install via ClawdHub

```bash
clawdhub install discord-voice
```

Or manually:

```bash
cd ~/.clawdbot/extensions
git clone <repository-url> discord-voice
cd discord-voice
npm install
```

### 3. Configure in clawdbot.json

```json5
{
  plugins: {
    entries: {
      "discord-voice": {
        enabled: true,
        config: {
          sttProvider: "local-whisper",
          ttsProvider: "openai",
          ttsVoice: "nova",
          vadSensitivity: "medium",
          allowedUsers: [], // Empty = allow all users
          silenceThresholdMs: 1500,
          maxRecordingMs: 30000,
          openai: {
            apiKey: "sk-...", // Or use OPENAI_API_KEY env var
          },
        },
      },
    },
  },
}
```

### 4. Discord Bot Setup

Ensure your Discord bot has these permissions:

- **Connect** - Join voice channels
- **Speak** - Play audio
- **Use Voice Activity** - Detect when users speak

Add these to your bot's OAuth2 URL or configure in Discord Developer Portal.

## Configuration

| Option                | Type     | Default           | Description                                     |
| --------------------- | -------- | ----------------- | ----------------------------------------------- |
| `enabled`             | boolean  | `true`            | Enable/disable the plugin                       |
| `sttProvider`         | string   | `"local-whisper"` | `"whisper"`, `"deepgram"`, or `"local-whisper"` |
| `streamingSTT`        | boolean  | `true`            | Use streaming STT (Deepgram only, ~1s faster)   |
| `ttsProvider`         | string   | `"openai"`        | `"openai"` or `"elevenlabs"`                    |
| `ttsVoice`            | string   | `"nova"`          | Voice ID for TTS                                |
| `vadSensitivity`      | string   | `"medium"`        | `"low"`, `"medium"`, or `"high"`                |
| `bargeIn`             | boolean  | `true`            | Stop speaking when user talks                   |
| `allowedUsers`        | string[] | `[]`              | User IDs allowed (empty = all)                  |
| `silenceThresholdMs`  | number   | `1500`            | Silence before processing (ms)                  |
| `maxRecordingMs`      | number   | `30000`           | Max recording length (ms)                       |
| `heartbeatIntervalMs` | number   | `30000`           | Connection health check interval                |
| `autoJoinChannel`     | string   | `undefined`       | Channel ID to auto-join on startup              |

### Provider Configuration

#### OpenAI (Whisper + TTS)

```json5
{
  openai: {
    apiKey: "sk-...",
    whisperModel: "whisper-1",
    ttsModel: "tts-1",
  },
}
```

#### ElevenLabs (TTS only)

```json5
{
  elevenlabs: {
    apiKey: "...",
    voiceId: "21m00Tcm4TlvDq8ikWAM", // Rachel
    modelId: "eleven_multilingual_v2",
  },
}
```

#### Deepgram (STT only)

```json5
{
  deepgram: {
    apiKey: "...",
    model: "nova-2",
  },
}
```

## Usage

### Slash Commands (Discord)

Once registered with Discord, use these commands:

- `/discord_voice join <channel>` - Join a voice channel
- `/discord_voice leave` - Leave the current voice channel
- `/discord_voice status` - Show voice connection status

### CLI Commands

```bash
# Join a voice channel
clawdbot discord_voice join <channelId>

# Leave voice
clawdbot discord_voice leave --guild <guildId>

# Check status
clawdbot discord_voice status
```

### Agent Tool

The agent can use the `discord_voice` tool:

```
Join voice channel 1234567890
```

The tool supports actions:

- `join` - Join a voice channel (requires channelId)
- `leave` - Leave voice channel
- `speak` - Speak text in the voice channel
- `status` - Get current voice status

## How It Works

1. **Join**: Bot joins the specified voice channel
2. **Listen**: VAD detects when users start/stop speaking
3. **Record**: Audio is buffered while user speaks
4. **Transcribe**: On silence, audio is sent to STT provider
5. **Process**: Transcribed text is sent to Clawdbot agent
6. **Synthesize**: Agent response is converted to audio via TTS
7. **Play**: Audio is played back in the voice channel

## Streaming STT (Deepgram)

When using Deepgram as your STT provider, streaming mode is enabled by default. This provides:

- **~1 second faster** end-to-end latency
- **Real-time feedback** with interim transcription results
- **Automatic keep-alive** to prevent connection timeouts
- **Fallback** to batch transcription if streaming fails

To use streaming STT:

```json5
{
  sttProvider: "deepgram",
  streamingSTT: true, // default
  deepgram: {
    apiKey: "...",
    model: "nova-2",
  },
}
```

## Barge-in Support

When enabled (default), the bot will immediately stop speaking if a user starts talking. This creates a more natural conversational flow where you can interrupt the bot.

To disable (let the bot finish speaking):

```json5
{
  bargeIn: false,
}
```

## Auto-reconnect

The plugin includes automatic connection health monitoring:

- **Heartbeat checks** every 30 seconds (configurable)
- **Auto-reconnect** on disconnect with exponential backoff
- **Max 3 attempts** before giving up

If the connection drops, you'll see logs like:

```
[discord-voice] Disconnected from voice channel
[discord-voice] Reconnection attempt 1/3
[discord-voice] Reconnected successfully
```

## VAD Sensitivity

- **low**: Picks up quiet speech, may trigger on background noise
- **medium**: Balanced (recommended)
- **high**: Requires louder, clearer speech

## Troubleshooting

### "Discord client not available"

Ensure the Discord channel is configured and the bot is connected before using voice.

### Opus/Sodium build errors

Install build tools:

```bash
npm install -g node-gyp
npm rebuild @discordjs/opus sodium-native
```

### No audio heard

1. Check bot has Connect + Speak permissions
2. Check bot isn't server muted
3. Verify TTS API key is valid

### Transcription not working

1. Check STT API key is valid
2. Check audio is being recorded (see debug logs)
3. Try adjusting VAD sensitivity

### Enable debug logging

```bash
DEBUG=discord-voice clawdbot gateway start
```

## Environment Variables

| Variable             | Description                    |
| -------------------- | ------------------------------ |
| `DISCORD_TOKEN`      | Discord bot token (required)   |
| `OPENAI_API_KEY`     | OpenAI API key (Whisper + TTS) |
| `ELEVENLABS_API_KEY` | ElevenLabs API key             |
| `DEEPGRAM_API_KEY`   | Deepgram API key               |

## Limitations

- Only one voice channel per guild at a time
- Maximum recording length: 30 seconds (configurable)
- Requires stable network for real-time audio
- TTS output may have slight delay due to synthesis

## License

MIT

「生活服務」分類下的熱門技能

育兒大師.Skill生活服務

育兒大師.Skill——0-18 歲全場景家庭養育支援,服務物件是家長。只要使用者的問題涉及孩子(0-18 歲)的養育、健康、行為、情緒、學習或親子關係,即應觸發本技能,無需使用者明確說出「育兒」二字;使用者以「我家孩子」「寶寶」「娃」等開場描述困擾時,同樣觸發。典型話題:育兒/帶娃/寶寶/嬰兒/幼兒/學齡前/青春期/新生兒、發育/里程碑/早教、餵養/輔食/挑食/夜醒/斷奶/睡眠、疫苗/體檢/溼疹/發燒/咳嗽/腹瀉/皮疹/流鼻涕、哭鬧/發脾氣/打人/咬人/說謊/恐懼/焦慮/分離/對抗/頂嘴/撒謊/害羞/抗挫折/修復關係、寫作業/拖延/厭學/考試焦慮/沉迷手機/注意力/過動症、親子關係/二胎/隔代育兒/離異家庭/單親/留守/喪親、ADHD/自閉症/抽動/感統、自傷/抑鬱/霸凌/欺凌/虐待/家暴、性教育/早戀/身體安全、父母自責/原生家庭/代際創傷/情緒崩潰/倦怠/吼孩子後修復、每週培養課表/家庭排程/爸爸陪伴、孩子檔案/成長記錄/評估量表/幼小銜接/入學準備/學習障礙/閱讀困難/性早熟/身高偏矮/超重/咬指甲/產後抑鬱/圍產期情緒/多胞胎/收養/寄養/殘障/聽障/視障/特殊教育/走失/防拐/早教/蒙臺梭利早教/早教班/興趣班/親子閱讀/繪本共讀/識字/拼音/數學啟蒙/英語啟蒙/專注力/自由玩耍/玩具/搶跑/超前學習/依戀/孩子不跟我親/只要奶奶/照顧者更換/重聚/獨屬時間/父職關係/關係修復/關係體檢/家庭治療/感統評測/感覺統合/感統失調/感覺加工/觸覺敏感。

↓ 307.6萬★ 87user_741dc82b
防騙大師.Skill生活服務

防騙大師.Skill:你身邊的生活類防騙專家。 當用戶貼來可疑的簡訊、聊天記錄、郵件、連結、App 或電話轉述,想知道"這是不是騙局"時立即出動,一眼看穿套路;當對話中冒出轉賬、驗證碼、螢幕共享、陌生連結、安全帳戶、冒充公檢法等危險訊號時主動亮劍,及時攔住伸向錢包的手;當用戶想要防騙科普、話術識別或實戰演練時隨時開課,寓教於練。覆蓋刷單返利、殺豬盤、冒充公檢法、冒充客服、虛假投資、釣魚連結、冒充老闆轉賬、資金盤、0元購消費全返等高發騙局,守住每一分血汗錢。

↓ 203.8萬★ 36user_741dc82b
anti-fraud生活服務

防騙大師.Skill:你身邊的生活類防騙專家。 當用戶貼來可疑的簡訊、聊天記錄、郵件、連結、App 或電話轉述,想知道"這是不是騙局"時立即出動,一眼看穿套路;當對話中冒出轉賬、驗證碼、螢幕共享、陌生連結、安全帳戶、冒充公檢法等危險訊號時主動亮劍,及時攔住伸向錢包的手;當用戶想要防騙科普、話術識別或實戰演練時隨時開課,寓教於練。覆蓋刷單返利、殺豬盤、冒充公檢法、冒充客服、虛假投資、釣魚連結、冒充老闆轉賬、資金盤、0元購消費全返等高發騙局,守住每一分血汗錢。

↓ 173萬★ 2user_814dbe54
育兒專家生活服務

0-18歲全場景家庭養育支援系統,覆蓋衣食住行、發育里程碑、行為情緒、症狀就醫、溝通話術、早教學習、危機識別與父母成長,服務家長、孕爸媽、隔代養育者等一切養育人員。當用戶諮詢帶娃、輔食、睡眠、穿衣、出行安全、寫作業、叛逆、健康症狀等問題時使用。不診斷不處方。

↓ 54.3萬★ -user_8b569cc9
parenting-expert生活服務

育兒大師.Skill——0-18 歲全場景家庭養育支援,服務物件是家長。只要使用者的問題涉及孩子(0-18 歲)的養育、健康、行為、情緒、學習或親子關係,即應觸發本技能,無需使用者明確說出「育兒」二字;使用者以「我家孩子」「寶寶」「娃」等開場描述困擾時,同樣觸發。典型話題:育兒/帶娃/寶寶/嬰兒/幼兒/學齡前/青春期/新生兒、發育/里程碑/早教、餵養/輔食/挑食/夜醒/斷奶/睡眠、疫苗/體檢/溼疹/發燒/咳嗽/腹瀉/皮疹/流鼻涕、哭鬧/發脾氣/打人/咬人/說謊/恐懼/焦慮/分離/對抗/頂嘴/撒謊/害羞/抗挫折/修復關係、寫作業/拖延/厭學/考試焦慮/沉迷手機/注意力/過動症、親子關係/二胎/隔代育兒/離異家庭/單親/留守/喪親、ADHD/自閉症/抽動/感統、自傷/抑鬱/霸凌/欺凌/虐待/家暴、性教育/早戀/身體安全、父母自責/原生家庭/代際創傷/情緒崩潰/倦怠/吼孩子後修復、每週培養課表/家庭排程/爸爸陪伴、孩子檔案/成長記錄/評估量表/幼小銜接/入學準備/學習障礙/閱讀困難/性早熟/身高偏矮/超重/咬指甲/產後抑鬱/圍產期情緒/多胞胎/收養/寄養/殘障/聽障/視障/特殊教育/走失/防拐/早教/蒙臺梭利早教/早教班/興趣班/親子閱讀/繪本共讀/識字/拼音/數學啟蒙/英語啟蒙/專注力/自由玩耍/玩具/搶跑/超前學習/依戀/孩子不跟我親/只要奶奶/照顧者更換/重聚/獨屬時間/父職關係/關係修復/關係體檢/家庭治療/感統評測/感覺統合/感統失調/感覺加工/觸覺敏感。

↓ 53萬★ -user_814dbe54
Weather生活服務

用 curl 直接查詢公開天氣服務,取得目前天氣與預報。

↓ 36萬★ 482Peter Steinberger
騰訊新聞生活服務

騰訊新聞 CLI 綜合資訊服務技能。

↓ 23.6萬★ 43u_8c6b225d
同程程心 Tongcheng Chengxin Travel Search生活服務

同程程心—基於同程旅行大模型的線上旅遊搜尋,提供機票、火車票、酒店、度假、攻略、行程規劃、特價票、汽車票、景區門票等即時查詢,官方資料保障,一鍵預訂,旅行更輕鬆愉快。

↓ 11.5萬★ 7tongcheng-ai

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。