Deepgram Discord Voice (Clawdbot/OpenClaw Plugin)
This plugin lets you talk to your agent only from a Discord voice channel.
Pipeline (low latency):
- Discord voice audio → Deepgram streaming STT (WebSocket)
- Transcript → your agent
- Agent reply → Deepgram TTS (
/v1/speak streamed HTTP Ogg/Opus)
- Audio played back into the voice channel
Requirements
- A Discord bot token (
DISCORD_TOKEN)
- A Deepgram API key (
DEEPGRAM_API_KEY)
- Discord bot permissions in your server:
- Connect
- Speak
- Use Voice Activity
Install
Option A: Install from ClawHub
- In your OpenClaw/Clawdbot dashboard, open Skills/Plugins.
- Add/install deepgram-discord-voice.
- Set the required environment variables.
Option B: Manual install
- Copy this folder into your extensions/plugins directory.
- Run:
npm install
- Restart OpenClaw/Clawdbot.
Configuration
Key settings
primaryUser (recommended): Who the bot listens to by default.
- Best: your Discord user ID (numeric)
- Also supported: username/display name (e.g.,
atechy) if unique in-channel
allowVoiceSwitch: If true, the primary user can switch who is allowed by voice.
wakeWord: Prefix for voice control commands. Default: openclaw.
deepgram.sttModel: Default nova-2.
deepgram.language: Optional BCP‑47 language tag (e.g., en-US, es, es-EC).
ttsVoice: Deepgram Aura voice model (e.g., aura-2-thalia-en).
Example config
{
"plugins": {
"entries": {
"deepgram-discord-voice": {
"enabled": true,
"config": {
"streamingSTT": true,
"streamingTTS": true,
"primaryUser": "atechy",
"allowVoiceSwitch": true,
"wakeWord": "openclaw",
"ttsVoice": "aura-2-thalia-en",
"vadSensitivity": "medium",
"bargeIn": true,
"deepgram": {
"sttModel": "nova-2",
"language": "en-US"
}
}
}
}
}
}
Usage
Join a voice channel
Use the plugin tool or slash command (depends on your OpenClaw setup):
- Join:
action=join with the channelId
- Leave:
action=leave
Talk (voice channel)
Once the bot is connected, just speak.
Safeguard: only listen to you (default)
When primaryUser is set, the plugin will only listen to that user unless you allow someone else.
Let someone else talk (voice commands)
As the primary user, say:
openclaw allow <name>
openclaw listen to <name>
To lock it back:
openclaw only me
openclaw reset
Switch via tool actions (optional)
allow_speaker with user (id / @mention / name)
only_me
status
Notes
- Lowest latency comes from
streamingSTT=true and streamingTTS=true.
- Deepgram TTS is streamed over HTTP in Ogg/Opus so Discord can play it immediately.
1---
2name: deepgram-discord-voice
3description: Voice-channel conversations in Discord using Deepgram streaming STT + low-latency TTS
4metadata:
5 source: https://skillmd.com/skills/modbender/deepgram-discord-voice
6 clawdbot:
7 config:
8 requiredEnv:
9 - DISCORD_TOKEN
10 - DEEPGRAM_API_KEY
11 optionalEnv: []
12 example: |
13 {
14 "plugins": {
15 "entries": {
16 "deepgram-discord-voice": {
17 "enabled": true,
18 "config": {
19 "streamingSTT": true,
20 "streamingTTS": true,
21 "ttsVoice": "aura-2-thalia-en",
22 "vadSensitivity": "medium",
23 "bargeIn": true,
24
25 "primaryUser": "atechy",
26 "allowVoiceSwitch": true,
27 "wakeWord": "openclaw",
28
29 "deepgram": {
30 "sttModel": "nova-2",
31 "language": "en-US"
32 }
33 }
34 }
35 }
36 }
37 }
38---
39
40# Deepgram Discord Voice (Clawdbot/OpenClaw Plugin)
41
42This plugin lets you talk to your agent **only from a Discord voice channel**.
43
44Pipeline (low latency):
45- Discord voice audio → **Deepgram streaming STT** (WebSocket)
46- Transcript → your agent
47- Agent reply → **Deepgram TTS** (`/v1/speak` streamed HTTP Ogg/Opus)
48- Audio played back into the voice channel
49
50## Requirements
51
52- A Discord bot token (`DISCORD_TOKEN`)
53- A Deepgram API key (`DEEPGRAM_API_KEY`)
54- Discord bot permissions in your server:
55 - **Connect**
56 - **Speak**
57 - **Use Voice Activity**
58
59## Install
60
61### Option A: Install from ClawHub
62
631. In your OpenClaw/Clawdbot dashboard, open **Skills/Plugins**.
642. Add/install **deepgram-discord-voice**.
653. Set the required environment variables.
66
67### Option B: Manual install
68
691. Copy this folder into your extensions/plugins directory.
702. Run:
71
72```bash
73npm install
74```
75
763. Restart OpenClaw/Clawdbot.
77
78## Configuration
79
80### Key settings
81
82- `primaryUser` (recommended): Who the bot listens to by default.
83 - Best: your **Discord user ID** (numeric)
84 - Also supported: username/display name (e.g., `atechy`) if unique in-channel
85
86- `allowVoiceSwitch`: If `true`, the primary user can switch who is allowed by voice.
87
88- `wakeWord`: Prefix for voice control commands. Default: `openclaw`.
89
90- `deepgram.sttModel`: Default `nova-2`.
91- `deepgram.language`: Optional BCP‑47 language tag (e.g., `en-US`, `es`, `es-EC`).
92- `ttsVoice`: Deepgram Aura voice model (e.g., `aura-2-thalia-en`).
93
94### Example config
95
96```json5
97{
98 "plugins": {
99 "entries": {
100 "deepgram-discord-voice": {
101 "enabled": true,
102 "config": {
103 "streamingSTT": true,
104 "streamingTTS": true,
105
106 "primaryUser": "atechy",
107 "allowVoiceSwitch": true,
108 "wakeWord": "openclaw",
109
110 "ttsVoice": "aura-2-thalia-en",
111 "vadSensitivity": "medium",
112 "bargeIn": true,
113
114 "deepgram": {
115 "sttModel": "nova-2",
116 "language": "en-US"
117 }
118 }
119 }
120 }
121 }
122}
123```
124
125## Usage
126
127### Join a voice channel
128
129Use the plugin tool or slash command (depends on your OpenClaw setup):
130- Join: `action=join` with the `channelId`
131- Leave: `action=leave`
132
133### Talk (voice channel)
134
135Once the bot is connected, just speak.
136
137### Safeguard: only listen to you (default)
138
139When `primaryUser` is set, the plugin will only listen to that user unless you allow someone else.
140
141### Let someone else talk (voice commands)
142
143As the primary user, say:
144- `openclaw allow <name>`
145- `openclaw listen to <name>`
146
147To lock it back:
148- `openclaw only me`
149- `openclaw reset`
150
151### Switch via tool actions (optional)
152
153- `allow_speaker` with `user` (id / @mention / name)
154- `only_me`
155- `status`
156
157## Notes
158
159- Lowest latency comes from `streamingSTT=true` and `streamingTTS=true`.
160- Deepgram TTS is streamed over HTTP in **Ogg/Opus** so Discord can play it immediately.