
WhisperLib
A fork of VoskLib that uses WhisperAI instead of VOSK for voice recognition
About this Mod
🎤 WhisperLib
An Event-based voice recognition mod that uses WhisperAI to transcript audio to text. Forked from VoskLib.
✨ Features
- Offline Recognition: Uses WhisperAI offline. No audio is sent to servers!
- Completely Client-side: The mod does not run WhisperAI to any Minecraft server.
- Built-in Model Manager: The mod includes a built-in Model Manager.
- Dynamic Loading: Displays avaliable models from HuggingFace.
- Adjustable Microphone Settings: Added settings screen to adjust mic related settings that wasn't in VoskLib yet.
- Security Feature: Immediately gets you notified when WhisperLib is listening.
📦 Installation for Users
- Download this mod from Curseforge.
- Launch the game and click
Modsbutton. - Locate
WhisperLiband pressConfig. - Select your model and press
Download. - After downloading, click your downloaded model.
- Pres
Save & Exit.
That's it.
🔨 Installation for Developers
Locate
build.gradle.Add the following:
dependencies { // ...your dependencies // Make sure it's in our Runtime (Do not shade these libraries) implementation 'io.github.givimad:whisper-jni:1.7.1' runtimeOnly 'io.github.givimad:whisper-jni:1.7.1' // Include the dev mod jar implementation fg.deobf(files("libs/whisperlib--dev.jar")) }Build the project and check if there's any issues.
If there's, you can contact me via Curseforge PMs or GitHub issues.
🔌 WhisperLib API
// Start Listening
VoiceManager.startListening();
// Stop Listening
VoiceManager.stopListening();
WhisperLib and VoskLib are posting their results in Forge Event Bus at Client-side.
@Mod.EventBusSubscriber(modid = "examplemod", bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT)
public class VoiceEvents {
@SubscribeEvent
public static void onResult(WhisperVoiceResult event) {
// Get the full text.
String result = event.getText();
if (result.toLowerCase().contains("hello")) {
System.out.println("Hi!");
}
// Use the following method to exclude messages like:
// [MUSIC], [upbeat music], etc. (does not exclude *laughing*)
String filteredText = event.getSpokenText();
// do more processing...
}
}
📜 Credits
- Fork of: VoskLib by InfinityTwo.
- WhisperAI API: OpenAI (WhisperAI)
Available Versions
How to Install WhisperLib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.6).
Install Mod
Open the mod browser in the dashboard and search for "WhisperLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.6, 1.20.5, 1.20.4 (+3 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
WhisperLib server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.6). You can switch loaders with one click in the panel.
Is WhisperLib compatible with forge?
WhisperLib officially supports forge for Minecraft 1.20.6, 1.20.5, 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with WhisperLib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if WhisperLib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install WhisperLib with just one click on your server.