Hey guys! This is probably one of the coolest scripts I've ever made, but sadly, it does require quite a bit of setup for it to work.
What is this script? This is NOT a resource, it's a Python script that will connect to a custom Mumble server (In this case, Grumble) and record all voice chat data. It will then transcribe that voice chat data into text, and check it against a list of words that you don't like.
(NOTE: ONLY TESTED WITH MUMBLE-VOIP ON WINDOWS x64)
Setup:
Dependancies: You will need to download these before anything.
- Download the Grumble server and put it in
(SERVERDIR)/Grumble Build Image/grumble
- Create a bat file
Build Grumble Image.bat
in(SERVERDIR)/Grumble Build Image
- Copy and paste the following into the bat file:
docker image rm mumble-voip/grumble --force
git clone https://github.com/mumble-voip/grumble.git
cd grumble
go get mumble.info/grumble/cmd/grumble
docker build -t mumble-voip/grumble .
- Run the bat file
- Create a bat file
Start Grumble Server Port 64738.bat
- Copy and paste the following into the bat file:
TITLE Grumble Server
SET mypath=%~dp0
docker run -v "%mypath:~0,-1%\Grumble Server:/data" -p 64738:64738 -p 64738:64738/udp mumble-voip/grumble
- You should now have a functioning Grumble server in your FiveM server.
- To use this custom server, put
MumbleSetServerAddress("SERVERIP", 64738)
into any client script, or use the config values associated with changing the address with whatever voice script you use. - Check if the Grumble server is working. (IMPORTANT)
- Install the python modules:
pip install pymumble
pip install vosk
pip install discord_webhook
- Follow these instructions to download the Opus codec on your system
- Download the script from here
- Create a folder called "Mumble Bot" and extract the download into it
- Download ffmpeg from here and drag and drop ffmpeg.exe into the
Mumble Bot
directory - Configure the Discord webhook and the bad words to be detected by modifying DalraeMumbleBot.py
- Run
start.bat
andStart Grumble Server Port 64738.bat
and it should now log all bad words into the Discord webhook.
This is EXTREMELY beta, and I probably got one of the steps above wrong.