dgvoice

package module
v0.0.0-...-d1c8d2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package dgvoice provides opus encoding and audio file playback for the Discordgo package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PlayAudioFile

func PlayAudioFile(ctx context.Context, vc *discordgo.VoiceConnection, path string, stop <-chan struct{}) (err error)

PlayAudioFile will play the given filename to the already connected Discord voice server/channel. voice websocket and udp socket must already be setup before this will work.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL