跳到正文

Slip of a Tongue

作者:MeroSsSany

Put words in list so when players say the word (via mic), a series of commands will be run

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Slip of a Tongue

_Voice-controlled command execution for Minecraft._

Slip of a Tongue allows players to trigger server-side commands and custom narrations using their actual voice. By leveraging the VoskLib client-side speech recognition engine, your spoken words are translated to text locally and sent to the server for secure validation and execution.


🎤 How it Works

  1. The Client: Uses VoskLib (locally) to turn your microphone input into a string of text.
  2. The Bridge: The client sends this string to the server.
  3. The Server: Validates the word against a pre-defined list. If it matches, the server executes the linked commands and narrations.

 


🛠 Installation

Client-Side (Required)

  1. Install VoskLib.
  2. Install Slip of a Tongue.
  3. Important: Open the VoskLib config in-game _(by clicking Mods -> VoskLib -> Config)_ and download a language model for the speech recognition to work.
  4. The voice recognition will be automatically enabled upon joining a world.

 

Server-Side (Required)

  1. Install Slip of a Tongue (VoskLib is not required on the server).
  2. Configure your word list in the server’s config folder.

 


⚙️ Command Syntax

The server-side configuration uses a specific format to map voice triggers:

word:[command1, command2, command3 %player%]text to narrate

Breakdown:

  • word: The keyword detected by the client’s STT.
  • [...]: A list of server commands (no / needed).
  • %player%: Replaced by the name of the player who spoke.
  • text to narrate: The message that will be narrated/sent back upon success.

Example Entry:

ascend:[effect give %player% levitation 5 1, say %player% is ascending!]Up we go!


🔒 Security & Privacy

  • Client-Side STT: Speech processing is handled entirely on your computer via VoskLib. No audio data is ever sent to the server or the cloud.
  • Server-Side Validation: To prevent players from spoofing commands, the server only executes actions for words explicitly defined in the server-side configuration file.

📜 Credits

  • VoskLib: Created by InfinityTwo
  • Speech Engine: Powered by Vosk.
  • License: GNU General Public License v3.0

常见问题

Slip of a Tongue 支持哪些 Minecraft 版本?

Slip of a Tongue 支持 Minecraft Java 版 1.20.1–1.20.6,共 6 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

Slip of a Tongue 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

MeroSsSany 的其他作品

查看全部 →