Before running the Discord Voice Bot, make sure you have the following:
- Python installed (version 3.10 or higher)
- Discord API token - You can obtain this by creating a new bot on the Discord Developer Portal
-
Rename
.env.example
to.env
and edit the environment variables -
Install the required packages
pip install -r requirements.txt
- Paste this to set the
LD_LIBRARY_PATH
variable
export LD_LIBRARY_PATH=`python3 -c 'import os; import nvidia.cublas.lib; import nvidia.cudnn.lib; print(os.path.dirname(nvidia.cublas.lib.__file__) + ":" + os.path.dirname(nvidia.cudnn.lib.__file__))'`
python main.py
/record
- Enables voice recording in your current voice channel./tts file {message}
- Generates an MP3 file containing the message you provided, converted into speech./tts speak {message}
- Joins your voice channel and delivers the message by speaking it aloud./transcribe
- Joins your voice channel and transcribes your speech into text.