discord-voice
БесплатноЗапускает вложенные скриптыНе проверенReal-time voice conversations in Discord voice channels with Claude AI
от sundial-org★ 676 звёзд на GitHubОб этом скилле
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) or Deepgram
- 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 or ElevenLabs
- 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/opusandsodium-native
Installation
1. Install System Dependencies
# 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
clawdhub install discord-voice
Or manually:
cd ~/.clawdbot/extensions
git clone <repository-url> discord-voice
cd discord-voice
npm install
3. Configure in clawdbot.json
{
"plugins": {
"entries": {
"discord-voice": {
"enabled": true,
"config": {
"sttProvider": "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 | "whisper" |
"whisper" or "deepgram" |
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)
{
"openai": {
"apiKey": "sk-...",
"whisperModel": "whisper-1",
"ttsModel": "tts-1"
}
}
ElevenLabs (TTS only)
{
"elevenlabs": {
"apiKey": "...",
"voiceId": "21m00Tcm4TlvDq8ikWAM", // Rachel
"modelId": "eleven_multilingual_v2"
}
}
Deepgram (STT only)
{
"deepgram": {
"apiKey": "...",
"model": "nova-2"
}
}
Usage
Slash Commands (Discord)
Once registered with Discord, use these commands:
/voice join <channel>- Join a voice channel/voice leave- Leave the current voice channel/voice status- Show voice connection status
CLI Commands
# Join a voice channel
clawdbot voice join <channelId>
# Leave voice
clawdbot voice leave --guild <guildId>
# Check status
clawdbot 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 channelspeak- Speak text in the voice channelstatus- Get current voice status
How It Works
- Join: Bot joins the specified voice channel
- Listen: VAD detects when users start/stop speaking
- Record: Audio is buffered while user speaks
- Transcribe: On silence, audio is sent to STT provider
- Process: Transcribed text is sent to Clawdbot agent
- Synthesize: Agent response is converted to audio via TTS
- Play: Audio is played back in the voice channel
Streaming STT (Deepgram)
When using Deepgram as your STT provider, streaming mode
Установить discord-voice в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл discord-voice?
Real-time voice conversations in Discord voice channels with Claude AI
Как установить скилл discord-voice?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл discord-voice запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic