Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.44 KB

File metadata and controls

40 lines (30 loc) · 1.44 KB

VoiceRecord Discord Bot

A Discord bot that records voice audio from users in a voice channel to .ogg files.

Features

  • Records multiple specific users to separate local .ogg files in the same session.
  • Handles Opus packets directly from Discord.
  • Patched to fix common voice_recv crashes.

Setup

  1. Install Dependencies:

    pip install -U discord.py[voice] discord-ext-voice-recv av numpy python-dotenv

    Note: You may need to install libopus and ffmpeg separately depending on your OS.

  2. Configuration:

    • Create a .env file in the root directory.
    • Add your bot token:
      DISCORD_TOKEN=your_token_here
  3. Run:

    python main.py

Commands

  • /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.

License & Disclaimer

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.