Skip to content

VoskLib

A library mod that ports VOSK to Minecraft

by InfinityTwoGames· MeroSsSanyLibrary
Forge
Loaders
Forge
Downloads on Modrinth
477
Followers on Modrinth
0
version
1
Updated
March 2, 2026Mar 2
Published
in 2026
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on Forge
For Minecraft 1.20.1
Client only — no need to install it on the server
Latest version — 1.1.0 from March 2, 2026
License GPL-3.0-only — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.20.1

🎙️ 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.

FAQ

How to install VoskLib?

Install Forge for your Minecraft version, download VoskLib for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does VoskLib support?

VoskLib has builds for Minecraft 1.20.1.

Is VoskLib needed on the server?

Client only — no need to install it on the server

License and source
GNU General Public License v3.0 onlyfree to use and share; changes to the mod itself must be published under the same license
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More