Mod
WhisperLib
No reviews yet
Fork of VoskLib. A voice recognition mod for Minecraft
Provides a framework or library for other mods to use.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
🎤 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)
- Maintained By: MeroSsSany
🎤 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)
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources