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
- Host: GitHub
- URL: https://github.com/mathisburger/discord-dca-player
- Owner: MathisBurger
- License: mit
- Created: 2024-05-15T18:19:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-27T18:24:41.000Z (about 2 years ago)
- Last Synced: 2024-06-01T14:19:23.142Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.