A Discord bot that uses the Uberduck API for text-to-speech in voice channels. See the Uberduck blog for a full tutorial on building this bot.
-
Install ffmpeg if not already installed.
-
Ensure you have the Opus audio codecs.
-
Create a fresh Python environment. I like to use Miniconda, which you can install here.
conda create -n uberduck-discord-example python=3.8 conda activate uberduck-discord-example pip install -e .
Add your Discord Bot token, Uberduck API key, and Uberduck API secret into the code.
Then you can run the bot via:
pyton -m uberduck_discord_example