GrammarPoliceBridge — Voice-Control GrammarPolice in ANY Language
Fix GrammarPolice's language and speech recognition limitations.
GrammarPoliceBridge is a companion plugin for GrammarPolice (LSPDFR) designed to solve one of GrammarPolice's biggest limitations: language support.
Instead of relying on GrammarPolice's built-in speech recognition, GrammarPoliceBridge acts as a voice bridge between your microphone and GrammarPolice.
Simply hold your Push-to-Talk key, speak naturally in your preferred language, and GrammarPoliceBridge will recognize your speech, match it to a GrammarPolice command, and trigger the corresponding action automatically.
Speak Thai, English, German, Russian, Japanese, or other supported languages — and let GrammarPolice handle the rest.
HOW IT WORKS
Hold the Push-to-Talk key while speaking.
GrammarPoliceBridge listens through your microphone, converts your speech into text using your selected speech engine, matches the recognized text against the available GrammarPolice commands, and triggers the appropriate action.
The default PTT key is Right Alt, but you can configure it to use another key.
FEATURES
Works with ANY language — GrammarPolice grammar pack of your choice (th-TH pack bundled)
3 speech engines: Windows (built-in), Vosk (live recognition, light on CPU), Whisper (local AI, most accurate)
Keyword dictionaries for 19 languages with cross-language fallback — say "code 4", "โค้ดโฟร์" or "Code vier" and it understands
Hold-to-talk or toggle mode, configurable action delay for realistic dispatch response
On-screen "Listening..." feedback, optional recognized-text overlay
True single-file plugin — no Python, no servers, no extra DLLs
Speech models auto-download on first run (one-time)
QUICK START
Install LSPDFR and GrammarPolice
Extract the zip and copy the contents over your GTA V folder
Edit GrammarPoliceBridge.ini: set Engine=Vosk (recommended, works offline, great for Thai)
Launch via RAGEPluginHook — hold the PTT key and speak
REQUIREMENTS
Grand Theft Auto V + RAGEPluginHook
LSPDFR + GrammarPolice
CONFIGURATION
All settings live in plugins\LSPDFR\GrammarPoliceBridge.ini — language, engine, PTT key and mode, action delay, notifications.
TROUBLESHOOTING
No response? Check Windows microphone privacy settings (Settings > Privacy > Microphone)
First launch downloads the speech model — be patient (40–190 MB depending on engine)
Make sure GrammarPolice's custom.ini has EnableSpeechRecognition=false and DispatchKey=None (the included deploy script does this automatically)
CREDITS
Companion plugin for GrammarPolice.
Edited by KongUser
What's New in Version 1.0.3
Released
Fixes the engine failing to start with "LoadLibrary failed for libgcc_s_seh-1.dll (error 126)" on a clean install.
1.0.3 loads the engine files dependency-first with LOAD_WITH_ALTERED_SEARCH_PATH, so
Windows looks in their own folder where those files are. Checked on a PC with an empty
PATH: the old loading order failed all four files, the new one loads all four. No manual
deleting, no configuration.
The rest of 1.0.3 is the diagnostics that were missing:
- If the files are complete but Windows still will not start them, the message now names
the exact component it could not find instead of telling you to delete anything. If it
names MSVCP140.dll, VCRUNTIME140.dll or VCOMP140.DLL, install the Microsoft Visual C++
2015-2022 Redistributable (x64) and start the game again.
- The engine libraries' own import tables are read, so the log names the missing
dependency rather than a bare Win32 error code, and every loaded library is logged with
its folder and exact size.
- The Whisper engine loads its own native files now too. whisper.dll needs the ggml dlls
from the same folder, and Whisper.net's loader has the same limitation, so Whisper could
have failed the same way.
- The Windows engine now reports what it hears: the recording device in use, the speech
languages Windows has installed, whether your Language= is one of them, every
recognition result with its status and confidence, and an explicit "no text recognized
for this press" line. Before this, switching to Windows speech and getting nothing gave
you an empty log with no way to tell whether the microphone, the language pack, the
privacy setting or the engine was at fault.
Short Description
AI disclosure
The author has disclosed that AI tools were used in creating the following aspects of this file:
- Description
- Images
- Mod and Mod Content (Moderate)
The plugin code was developed with significant AI assistance, and the cover image was AI-generated for the mod page. AI was meaningfully used in code, translation and documentation, though the design, testing and integration were done by the author.
Companion plugin for GrammarPolice by the Immersive Plugins Team.
Speech engines: Vosk (alphacephei), Whisper.net and NAudio.
Thai Vosk model by VISTEC-AI.
Recommended Comments
Create an account or sign in to comment