An open API service indexing awesome lists of open source software.

https://github.com/mathisburger/discord-dca-player

Discordgo library for playing DCA files and live converting other audio files to DCA
https://github.com/mathisburger/discord-dca-player

Last synced: 6 months ago
JSON representation

Discordgo library for playing DCA files and live converting other audio files to DCA

Awesome Lists containing this project

README

          

# Discord DCA player

A simple discordgo library for streaming audio files to voice channel.

# Usage

```go
player.Play("/path/to/audiofile", vc)
```

The audiofile can be of any file type. For example a mp3-file will be auto translated to dca and persisted in storage.

# Requirements
You will need to have ffmpeg installed and the dca binary needs to be placed into the directory of the binary that runs the discord bot
in order to ensure safe translation of the audiofiles into dca format.