Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🔊 Discord TTS Bot

A simple Discord bot that joins your voice channel and reads messages aloud.

Commands

Command Description
!say <text> Bot joins your voice channel and speaks the text
!stop Stops current playback
!leave Bot disconnects from voice

Setup

1. Prerequisites

  • Python 3.9+
  • FFmpeg installed on your system:

2. Create a Discord Bot

  1. Go to https://discord.com/developers/applications
  2. Click New Application, give it a name
  3. Go to Bot → click Add Bot
  4. Under Privileged Gateway Intents, enable:
    • ✅ Message Content Intent
    • ✅ Server Members Intent (optional)
  5. Copy your Bot Token — you'll need it next
  6. Go to OAuth2 → URL Generator:
    • Scopes: bot
    • Bot Permissions: Send Messages, Connect, Speak, Use Voice Activity
  7. Copy the generated URL and open it to invite the bot to your server

3. Install & Run

# Clone / copy the files, then:
cd discord-tts-bot

# Install dependencies
pip install -r requirements.txt

# Set your bot token (Mac/Linux)
export DISCORD_TOKEN="your-token-here"

# Set your bot token (Windows PowerShell)
$env:DISCORD_TOKEN="your-token-here"

# Run the bot
python bot.py

4. Use It!

  1. Join a voice channel in your Discord server
  2. In any text channel, type: !say Hello, this is a test!
  3. The bot will join your voice channel and speak 🎉

Customization

Troubleshooting

  • "FFmpeg not found" — Make sure FFmpeg is installed and in your PATH
  • Bot doesn't respond — Check that Message Content Intent is enabled in the Developer Portal
  • No audio — Make sure the bot has Connect and Speak permissions in your voice channel

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages