Switch language한국어
Back to the list

Building a Discord Caller (Voice Relay) Bot in Go

TL;DR AI

Key summary

2 min read
  1. The article describes go-discord-caller, a Go bot that relays one user's voice into multiple Discord channels.

  2. Discord voice uses a WebSocket gateway for control and UDP with Opus for audio transport, and DAVE adds MLS-based E2EE.

  3. The project uses disgo for Discord integration and godave (a CGO wrapper for libdave) to handle DAVE; CGO complicates builds.

  4. Audio flows from a caller VoiceReceiver through buffered Go channels to multiple VoiceProvider speaker bots, with per-guild isolation and simple persisted state.

Read the original