RyanCheddar / discord-voice-message-transcriber

Discord.py bot that auto-transcribes voice messages using OpenAI Whisper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-voice-message-transcriber

Discord.py bot that transcribes voice messages using OpenAI Whisper

Screenshot 2023-04-15 at 11 38 56 PM

Get Started

To use the bot, you will first need to install Python. Python 3.10 is recommended as it's the easiest to set up. 3.11 also works and can provide some speedup, but you may need to install a pre-release version of numba using pip install --pre numba.

You can install the needed dependencies by doing pip install -r requirements.txt.

You will also need a bot token (acquirable at the Discord Developer Portal), which you will need to add to the .env file after BOT_TOKEN=. Make sure your bot has the Message Content intent, or it won't be able to read any voice messages.

Finally, in the config.ini file, you can change some settings that alter how the bot works. You will need to add your User ID in the admin > users variable, just so you can control the bot via commands later. Alternately, you can also input a Role ID in admin > role to allow users with a specific role to control the bot, but this requires the Server Members intent.

Once you have successfully started the bot, send "!synctree" in a channel the bot can see in order to get context menu functionality + slash commands working.

Contribute & Other Stuff

Sorry for the spaghetti code, I frankly have no idea how to do voice recognition efficiently.

Feel free to make pull requests to improve stuff for the next person.

If you encounter any issues with the code, leave them in the issue tracker and someone might fix it for you.

The code is licensed under the MIT license, which probably means you can do whatever with it, so have fun :)

About

Discord.py bot that auto-transcribes voice messages using OpenAI Whisper

License:MIT License


Languages

Language:Python 100.0%