Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bwmarrin/dgvoice
/ functions
Functions
6 in github.com/bwmarrin/dgvoice
⨍
Functions
6
◇
Types & classes
0
↓ 1 callers
Function
SendPCM
SendPCM will receive on the provied channel encode received PCM data into Opus then send that to Discordgo
dgvoice.go:57
↓ 1 callers
Function
echo
Takes inbound audio and sends it right back out.
examples/echo/main.go:56
Function
PlayAudioFile
PlayAudioFile will play the given filename to the already connected Discord voice server/channel. voice websocket and udp socket must already be setu
dgvoice.go:143
Function
ReceivePCM
ReceivePCM will receive on the the Discordgo OpusRecv channel and decode the opus audio into PCM then send it on the provided channel.
dgvoice.go:99
Function
main
()
examples/echo/main.go:11
Function
main
()
examples/play/main.go:12