A Discord bot that records voice audio from users in a voice channel to .ogg files.
- Records multiple specific users to separate local
.oggfiles in the same session. - Handles Opus packets directly from Discord.
- Patched to fix common
voice_recvcrashes.
-
Install Dependencies:
pip install -U discord.py[voice] discord-ext-voice-recv av numpy python-dotenv
Note: You may need to install
libopusandffmpegseparately depending on your OS. -
Configuration:
- Create a
.envfile in the root directory. - Add your bot token:
DISCORD_TOKEN=your_token_here
- Create a
-
Run:
python main.py
/join: Join your current voice channel./startrecord <user> <path>: Start a recording session or add another user to the active session./stoprecord: Stop recording and save every recorded user's file./leave: Leave the voice channel.
This project is open-source and free to use for any purpose.
DISCLAIMER: This software is provided for educational purposes only. The authors and contributors are not responsible for any misuse, harm, or legal consequences arising from the use of this bot. It is your responsibility to ensure you comply with all applicable laws and Discord's Terms of Service regarding audio recording and consent.