简易文本聊天
一款简单的模组,允许你在游玩时通过语音识别将声音转换为聊天消息进行对话。
设计初衷
“你可以边玩边说话,但你不能边玩边打字。”
—— Yuang2714 在未安装 Simple Voice Chat 的 Minecraft 服务器上的发言

安装
请先安装该模组。在需要时,游戏启动时会弹出设置菜单。
请按照菜单中显示的说明完成设置。
手动安装步骤
你应该使用设置菜单。
仅在特殊情况下才访问此处。
- 前往 Vosk 模型页面 并根据你的语言选择模型。
- 下载所选模型的
.zip 压缩包。
- 将压缩包解压到某处。
- 进入游戏的配置文件夹,创建一个
simple_text_chat.json 文件。
- 写入如下格式的内容:
{"setup":true,"recognizationMode":"mode","modelFolder":"/path/to/model","modelLang":"lang"}
- "/path/to/model" 是模型所在的 目录 路径。
- "mode" 是工作模式的选择。有以下模式可供选择:
- "AUTO_DETECT":持续识别,检测到句子结束时发送消息。
- "PRESS_SEND":持续识别,按下功能键时发送消息。
- "HOLD_TO_SPEAK":按下功能键开始识别,再次按下发送消息。
- "lang" 是你所用模型的语言选择。通常会自动检测。目前可选:
- "CHINESE"(中文)
- "ENGLISH"(英文)
使用方法
安装后,你会在游戏窗口右下角看到一个新的小组件(HUD)。它可能显示“Simple Text Chat Disabled”等字样。
检查你的按键绑定。此模组添加了 3 个按键绑定:
- 功能切换键:控制识别引擎是否运行
- 语音完成键:“功能”键,在不同模式下工作方式不同:
- 在自动检测模式下:它不会有任何效果,所有检测均为自动化。
- 在按键发送模式下:按下它将发送消息,无论句子是否结束。
- 在按住说话模式下:按下一次开始识别,再次按下发送。
- 取消键:按下它将取消单次消息发送。
当你说话时,HUD 元素会显示临时内容。
玩得开心!
版本路线图
|
Fabric |
Forge |
Neoforge |
| 26.1+ |
支持 |
未计划 |
规划中 |
| 1.21.1+ |
支持 |
未计划 |
规划中 |
| 1.20.1+ |
支持 |
未计划 |
未计划 |
| 1.20.1 |
支持 |
支持 |
未计划 |
| 1.20.1- |
未计划 |
未计划 |
未计划 |
Vosk 库使用说明
本项目在 Apache-2.0 许可下使用 Vosk 作为识别引擎。
Vosk 已包含在模组 jar 文件中。无需担心其安装问题。
Simple Text Chat
A simple mod that allows you to chat with voices while playing by recognize your voice to chat messages.
Intention
"You can speak while playing, but you can't type while playing."
—— Yuang2714's speech on a Minecraft server that has not Simple Voice Chat installed

Installation
Install the Mod first. When needed, a setup menu will appear on game starting.
Follow the instractions shown in the menu to complete setup.
Mannually Installation Steps
YOU SHOULD USE SETUP MENU INSTEAD.
ACCESS HERE ONLY IF YOU HAVE SPECIAL REASON.
- Go to Vosk Models Page and select model based on your language.
- Download the
.zip archive of selected model.
- Extract the archive to somewhere.
- Go to the Game's config folder, and create a
simple_text_chat.json file.
- Write contents formatted like:
{"setup":true,"recognizationMode":"mode","modelFolder":"/path/to/model","modelLang":"lang"}
- "/path/to/model" is the DIRECTORY path to the model.
- "mode" is a selection of working mode. There are following modes to choose:
- "AUTO_DETECT": Recognize continuously, send message when detect a sentence's end.
- "PRESS_SEND": Recognize continuously, send message on pressing the Function Key.
- "HOLD_TO_SPEAK": Press the Function Key once to start recognize, then press it again to send message.
- "lang" is a selection of which language does your model use. Usually auto detected. Currently, it can be:
Usage
After install, you will see a new HUD element in-game on the right-down corner of the game window. Prohabily it shows "Simple Text Chat Disabled" etc.
Check your keybindings. This mod added 3 keybindings:
- Feature Toggle Key: Controls if the recognization engine is running
- Speech Done Key: The "Feature" key, works differently among modes:
- In Auto Detect Mode: It won't have any effect, all detection is automated.
- In Press Send Mode: Press it will send the message, whatever sentence is finished.
- In Hold To Speak Mode: Press once to start recognization, and press again to send.
- Cancel Key: Press it will cancel message sending once.
As you speak, the HUD element displays the temporary content.
Enjoy!
Version Route Map
|
Fabric |
Forge |
Neoforge |
| 26.1+ |
Supported |
Not Planned |
Planning |
| 1.21.1+ |
Supported |
Not Planned |
Planning |
| 1.20.1+ |
Supported |
Not Planned |
Not Planned |
| 1.20.1 |
Supported |
Supported |
Not Planned |
| 1.20.1- |
Not Planned |
Not Planned |
Not Planned |
Vosk lib Usage
This project uses Vosk as recognization engine under the Apache-2.0 license.
Vosk is included in mod jar file. Don't worry about it's installation.
评论 0
登录后参与评分
还没有评论,来抢沙发吧