VoskLib

VoskLib

A library mod that ports VOSK to Minecraft

by
60 Downloads
forgelibrary
Rent Server with this Mod

About this Mod

🎙️ VoskLib

VoskLib is a high-performance, offline voice recognition library for Minecraft Forge 1.20.1


✨ Features

  • 100% Offline: No API keys or internet connection required for recognition.
  • Dual Modes: Switch between Literal Mode (wide vocabulary) and Grammar Mode (constrained lists).
  • In-Game Model Manager: Download and manage Vosk models directly from the mod config menu with a built-in progress bar.
  • Thread Safe: Background audio processing automatically synchronized with the Minecraft main thread.
  • Developer Friendly: Easy-to-use events for partial and final speech results.

🛠️ Installation for Users

  1. Install Minecraft Forge 1.20.1.
  2. Drop the jar file into your mods folder.
  3. Download a Model:
  • Open the game and go to Mods -> VoskLib -> Config.
  • Select a model (Small, Medium, or Large) and click Download.
  • VoskLib will handle the download and extraction automatically.

⌨️ Keybinds

  • V (Default): Toggles voice recognition on/off.
  • Configurable in the standard Controls menu under the "Vosk Voice Library" category.

💻 Developer API

To use VoskLib in your project, add it to your build.gradle and start listening for events.

1. Handling Speech Results

VoskLib fires events on the Forge Event Bus. These events are already executed on the Main Thread, so you can safely interact with the player or world.

@SubscribeEvent
public void onVoiceResult(VoskVoiceEvent.Result event) {
    String text = event.getResult().toLowerCase();

    if (text.contains("fireball")) {
        // Your logic: Summon a fireball in front of the player
    }
}

@SubscribeEvent
public void onPartialSpeech(VoskVoiceEvent.Partial event) {
    // Useful for real-time UI subtitles
    String partial = event.getResult();
}

2. Controlling the State

You can request VoskLib to start or stop listening by using:

String[] spells = {"ignite", "freeze", "thunder", "heal"};
VoskManager.createRecognition(spells); // Create Recognition for Grammar Mode (High Accuracy for specific words)
VoskManager.createRecognition(); // Create Recognition for Literal Mode (General Dictation)

VoskManager.startListening(); // Start Listening
VoskManager.stopListening(); // Stop Listening

📜 Credits

  • Vosk API: Developed by Alpha Cephei.
  • Mod Author: Infinity Two.

Available Versions

VoskLib 1.1.0release
MC 1.20.1forge
March 2, 2026

How to Install VoskLib on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "VoskLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forge

Minecraft Versions

1.20.1

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

VoskLib 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.1). You can switch loaders with one click in the panel.

Is VoskLib compatible with forge?

VoskLib officially supports forge for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with VoskLib – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if VoskLib 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.

Rent Modded Server

Install VoskLib with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Unsupported

Supported Versions

1.20.1