
Modrinth · Minecraft mod
VoiceLib
Minecraft Voice Recognition Library
Quick answer
Which VoiceLib release should I use?
VoiceLib 2.0 targets 1.21.1 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is VoiceLib required on the client, server, or both?
Installation on the client is optional. Installation on the dedicated server is optional.
The source marks this as usable on both the client and server.
What else does VoiceLib 2.0 need?
2.0. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add VoiceLib without breaking your instance.
Built for VoiceLib 2.0. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 2.0. It targets 1.21.1 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Installation on the client is optional. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 2.0. It opens that exact file at the source.
About this project
What does VoiceLib add?
VoiceLib
Minecraft text to speech library
Usage
VoiceLibApi is the class for the API.
The following are the methods you will be using
VoiceLibApi.registerServerPlayerSpeechListener(Consumer<ServerPlayerTalkEvent> consumer)
This method registers a ServerPLayerTalkEvent Consumer. Whenever a player speaks,
This event will be fired. The ServerPlayerTalkEvent provides the player, and a string of what they said.
VoiceLibApi.registerClientSpeechListener(Consumer<ClientTalkEvent> consumer)
This method registers a ClientTalkEvent Consumer. This method is only fired on the client.
Whenever the user speaks, this will be fired.
VoiceLibApi.setPrintToChat(boolean printToChat)
This is only on the client. This sets whether or not to
print client speak events to chat. (Default False)
VoiceLibApi.setPrintToConsole(boolean printToConsole)
Same as printToChat but for the console instead. (Default False)
All methods have java docs for information on their usages.
Example
This method makes it so if any player on the server says "ouch" they light on fire
VoiceLibApi.registerServerPlayerSpeechListener((serverPlayerTalkEvent -> {
if (serverPlayerTalkEvent.getText().contains("ouch"))
serverPlayerTalkEvent.getPlayer().igniteForSeconds(2);
}));
You can also see this in VoiceLibExample
Security
There are a few things to note with this mod,
- The mod automatically downloads a vosk model from the internet on the first launch, it is about 40MB
- This mod by default, constantly records and sends all text data to the server. This means a bad actor could listen in on your conversations (But only in text as audio is not sent to the server)
- The push to talk key is inverted by default, this means pressing it turns OFF your microphone
- Other mods can forcefully enable always on recording, they can also disable it (See VoiceLibClient)
Project description from Modrinth.
Pick your setup
VoiceLib by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21
2 loader buildsCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
VoiceLib versions and loaders
2.0
voicelib-fabric-1.21.1-2.0.jar
12 Aug 2026
2.0
voicelib-neoforge-1.21.1-2.0.jar
12 Aug 2026
1.0.1
voicelib-neoforge-1.0.1.jar
19 Aug 2024
1.0.1
voicelib-fabric-1.0.1.jar
19 Aug 2024
Looking for an older file? The official Modrinth project page is in Resources.
