✨ Discord Bot that transcribes (& translates) Discord's voice messages into text.
MIT License
A Discord bot that can transcribe and translate Discord Voice Messages.
Run the following:
pip install -r requirements.txt
Note Bot requires Intents to be enabled in the developer portal & an API key for the DeepL API.
git clone https://github.com/dromzeh/vmt.git
config.example.json
file to config.json
inside src/config
and fill in the necessary values (See Configuration)Once the configuration file has been filled, you may run the bot using one of the following methods:
pip install -r requirements.txt
/src
folder: python main.py
Assuming docker
and docker-compose
are installed
docker-compose -f compose.yaml up
transcribe
command. The bot will transcribe the voice message and post the transcription as a reply, if you don't reply, the bot will find the most recent voice message in the channel and transcribe it instead.vmt transcribe es
for Spanish, full list is available at vmt languages
or here.The config.json file contains the following fields:
discord_token
: Your Discord bot token.deepl_api_key
: Your DeepL API key.language_codes
: A dictionary of language codes and their corresponding language names. "language_codes": {
"BG": "Bulgarian",
"CS": "Czech",
"DA": "Danish",
"DE": "German",
"EL": "Greek",
"EN-GB": "English (British)",
"EN-US": "English (American)",
"ES": "Spanish",
"ET": "Estonian",
"FI": "Finnish",
"FR": "French",
"HU": "Hungarian",
"ID": "Indonesian",
"IT": "Italian",
"JA": "Japanese",
"KO": "Korean",
"LT": "Lithuanian",
"LV": "Latvian",
"NB": "Norwegian (Bokml)",
"NL": "Dutch",
"PL": "Polish",
"PT-BR": "Portuguese (Brazilian)",
"PT-PT": "Portuguese",
"RO": "Romanian",
"RU": "Russian",
"SK": "Slovak",
"SL": "Slovenian",
"SV": "Swedish",
"TR": "Turkish",
"UK": "Ukrainian",
"ZH": "Chinese (simplified)"
}
This project is licensed under the MIT License - see the LICENSE file for details.