Skip to content

Discord bot that streams audio from available input devices

License

Notifications You must be signed in to change notification settings

ygorpontelo/discord_stream_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Stream Bot

Once you configure your own personal bot, see tutorial here, place the token in a txt file in the same folder called token.txt.

This bot uses Pyaudio to read any available input and stream the audio to discord. Only mono and stereo inputs are supported (1 and 2 channels). The script will present a nice CLI interface to select those.

This bot does not create a device input, only reads available ones. If you want to redirect audio using virtual inputs, you need an interface to do that, like Jack audio on Linux, VB-Cable on Windows or BlackHole on MacOS.

Poetry is the recommended way to manage dependencies, but you can install them via pip normally with requirements.txt (includes all dependencies).

To compile the bot to exe, use this command:

pyinstaller --console --onefile --collect-all discord --collect-all samplerate --collect-all pyaudio bot.py

Tutorial video (PT-BR): https://youtu.be/UX1de8Hu2p0

About

Discord bot that streams audio from available input devices

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages