Narrator 是一款主要为视障人士设计的模组。它会朗读各种游戏元素的文本,就像许多普通屏幕阅读器那样。不过,Narrator 直接在 Minecraft 中完成这一操作,并且在你将鼠标悬停在元素上时(95% 的情况下)进行朗读,这比不断按 Ctrl+C/Ctrl+V 要方便得多。
它是如何工作的?
当你悬停在一个支持的游戏元素(例如按钮)上时,Narrator 会获取其文本并将其传递给 PiperTTS* 子进程。Piper 将文本转换为音频文件,并在游戏中立即播放。
*一个第三方 文本转语音引擎,支持多种语音模型。
需要采取哪些步骤才能让 Narrator 正常工作?
- PiperTTS 所需的所有文件都已包含在模组中。你只需要启动 Minecraft,Narrator 就会自动将它们提取到 config/Narrator/PiperTTS 文件夹中。
- 接下来,你需要下载当前 Minecraft 客户端语言的语音模型*,并将其放在启动时生成的语言文件夹中。例如,对于英语,路径将是 config/Narrator/PiperTTS/voices/en_US
- 就这样,你不需要做其他任何事情。甚至不需要重启游戏;你可以随时更改语音模型,它会立即生效。
*由于每种语言都有相当多的语音模型,而且它们体积很大,Narrator 不会强行指定某个模型给你。你可以选择自己喜欢的模型并用于配音。
在这里,你可以检查每个语音模型在实际中的效果:
在这里你可以下载当前客户端语言所选的模型:
重要提示! 你只需要两个模型文件——一个是 .onnx 扩展名的文件,另一个是 .onnx.json 扩展名的文件。对于每个模型,这些文件必须始终具有相同的名称但不同的扩展名。
警告! 不要使用多说话人模型,因为它们不是为在 Minecraft 中使用而设计的。即使它们工作正常,单个说话人的质量也可能不如单说话人模型。
阿拉伯语支持
由于处理阿拉伯语的特殊性,玩家需要采取额外行动来支持它:
- 你需要下载 piper_windows_amd64.zip 存档(或任何其他 版本),并将其中的 libtashkeel_model.ort 文件复制到 config/Narrator/PiperTTS 文件夹中(不在 voices 中)。
- 此外,阿拉伯语的语音模型 的语言代码是 ar_JO,与 Minecraft 客户端语言和你需要放置模型的文件夹不同:config/Narrator/PiperTTS/voices/ar_SA
- 完成前两步后,一切应该像往常一样工作。
Narrator 目前已经可以朗读什么?
点击时:
– 聊天消息(仅你点击的那一行,因为目前我无法区分快速出现在聊天中的一条消息的不同行,导致多条消息同时被朗读。未来我会尝试添加对多行消息的朗读,但目前我不得不手动点击每一行)
悬停时:
– 聊天消息工具提示(成就、给予、纯文本)
– 物品及其工具提示
– 容器(方块、生物和玩家)
– 创造模式标签页
– 成就
– 统计信息
– 书与笔
– Boss 血条
– 经验等级
– 药水效果
– 调试模式(F3)
– 浮动文字
– 按钮及其工具提示
– 模组列表
– 模组配置
– 大多数游戏界面
– 输入框(文本、数字)
– 单人世界描述
– 多人/LAN 服务器描述(包括 motd、在线人数、延迟、平台)
滚动时:
– 快捷栏选中的物品
自动:
– 离开载具的提示
– 正在播放唱片的名字
– 终末之诗
目前不支持什么?
– 调试模式中的分析器(Shift+F3)。我还无法教会 Narrator 正确识别所有分析器层并更改其状态
– 创建/加载世界、在世界之间传送以及其他暂时出现的界面
– Tab 列表
– 在某些情况下出现的界面,我只是忘记了或不知道
– 任何模组。如果有什么能用,那是巧合,而不是支持。但这都在计划之中……
常见问题解答
问: 我如何检查模组是否正常工作?
答: 如果你还没有听到任何语音,有一个更可靠的方法。当你加入世界时,会出现一条关于模组状态的消息。你也可以使用 /narrator status 命令。如果你按照说明操作正确,消息将是绿色的。如果你忘记了一些语音模型的部分,它将是黄色的。如果你完全没注意说明,消息将是红色的。无论如何,你不会混淆,并且知道需要修复什么。
问: 支持哪些操作系统?
答: Windows、Linux、macOS 和 Android。必要的文件将在客户端启动时自动提取到 config/Narrator/PiperTTS 文件夹中。
问: Narrator 是否需要互联网连接才能工作?
答: 不需要。Narrator 是完全自主的,无需互联网连接即可工作。
问: Narrator 会破坏我的世界游戏世界、电脑,或者会被视为作弊吗?
答: 不会。Narrator 对你的世界完全安全,因为它是一个纯客户端模组。它也不会对您的电脑做任何 Minecraft 本身、浏览器或其他读写数据的软件所不做的操作。此外,它不能被归类为作弊工具,因为它不会给用户带来任何优势。它无法放大脚步声、通过回声定位显示生物位置或进行任何其他超出“文本转语音”定义的操作。
问: 我如何在游戏中直接测试选定的语音模型?
答: 你可以使用 /narrator test 命令,并在其后输入任意将被朗读的文本。
问: 如果我想查看缓存总大小或清除缓存,该如何操作?
答: 你可以使用 /narrator cache info 命令来检查缓存的大小和文件数量,并使用 /narrator cache clear 命令来彻底清空文件夹。
问: 我该如何调整音量?
答: Narrator 的音量与音乐与音效设置中的主音量相关联。
问: 这个模组有配置文件吗?
答: 有的。Narrator 拥有一个相当全面的配置文件,参数说明清晰明了。你可以根据整合包的需求自定义模组的所有功能。
问: 如果我不想听长文本,该怎么办?
答: 你可以将鼠标悬停在任何短文本上(例如“完成”按钮),长文本就会中断。但有一个更好的选择。你可以绑定停止 Narrator 的快捷键,按下时即可中断任何朗读。
问: 如果我想暂时关闭 Narrator,直到重启游戏,或者过一会儿再重新开启,该怎么办?
答: 你可以绑定启用/禁用 Narrator 的快捷键,该快捷键可以在当前游戏会话中开关 Narrator。
问: 我发现有些内容没有被朗读 / 我有其他问题。我该怎么办?
答: 请在评论区告知我们,或者更好是在我们的 Discord 服务器 上联系我们。
法律声明: 我与 PiperTTS 或 Piper 语音模型没有任何关联。我不拥有 PiperTTS 或 Piper 语音模型的任何权利。我只是按照其许可证使用它们,并对所有参与 PiperTTS 和 Piper 语音模型开发的人员表示最深切的感谢。
Narrator is a mod designed primarily for people with visual impairments. It reads aloud the text of various game elements, as many ordinary screen readers do. However, Narrator does this directly in Minecraft and when you hover the cursor (in 95% of cases), which is much more convenient than constantly pressing Ctrl+C/Ctrl+V.
How does it work?
When you hover over a supported game element (such as a button), Narrator retrieves its text and passes it to the PiperTTS* subprocess. Piper converts the text into an audio file, which is immediately played in the game.
*A third-party text-to-speech engine that works with various voice models.
What steps need to be taken for Narrator to work?
- All the files required for PiperTTS are already included in the mod. You just need to launch Minecraft, and Narrator will automatically extract them to the config/Narrator/PiperTTS folder.
- Next, you need to download the voice model* for the current Minecraft client language and place it in the language folder generated at startup. For example, for English, the path will be config/Narrator/PiperTTS/voices/en_US
- That's it, you don't need to do anything else. You don't even need to restart the game; you can change the voice model at any time and it will work immediately.
*Since there are quite a few voice models for each individual language, and they are quite large, Narrator does not arbitrarily attempt to impose a specific model on you. You can choose the model you like and use it for voiceovers.
Here, you can check how each voice model will sound in practice:
And here you can download the selected model for the current client language:
Important! You only need two model files — one with the .onnx extension and the other with the .onnx.json extension. For each model, these files must always have the same name but different extensions.
Warning! Do not use multi-speaker models, as they are not intended for use in Minecraft. Even if everything works fine with them, the quality of an individual speaker may be less than a single speaker model.
Arabic language support
Due to the peculiarities of working with the Arabic language, additional actions are required from the player to support it:
- You need to download the piper_windows_amd64.zip archive (OR any other) and copy the libtashkeel_model.ort file from it to the config/Narrator/PiperTTS folder (not in voices).
- Also, the voice model for Arabic has the language code ar_JO, unlike the Minecraft client language and the folder where you need to place the model: config/Narrator/PiperTTS/voices/ar_SA
- Once you have completed the previous two steps, everything should work as usual.
What can Narrator already narrate?
When clicked:
– Chat messages (only the line you clicked, because right now I can't distinguish the lines of one message from another when they appear quickly in the chat, causing the voiceover to be played for multiple messages at once. In the future, I'll try to add voiceover for multi-line messages, but for now, I'll have to click each line manually)
When hovered over:
– Chat message tooltips (achievements, give, plain text)
– Items and their tooltips
– Inventories (blocks, mobs, and player)
– Creative tabs
– Achievements
– Statistics
– Book and Quill
– Boss bars
– Experience level
– Potion effects
– Debug mode (F3)
– Splashes
– Buttons and their tooltips
– Mod List
– Mod configurations
– Most game screens
– Input fields (text, numbers)
– Description of single worlds
– Description of multiplayer/LAN servers (including motd, online, ping, platform)
When scrolling:
– Selected item on the hotbar
Automatically:
– Hint on how to get off transport
– Name of the playing record
– End Poem
What is not currently supported?
– Profiler in debug mode (Shift+F3). I am not yet able to teach Narrator to correctly identify all profiler layers and change their status
– Screens when creating/loading a world, teleporting between worlds, and other screens that appear temporarily
– Tab list
– Screens that appear in certain situations that I simply forgot about or didn't know about
– Absolutely no mods. If something works, it's a coincidence, not support. But it's all in the plans…
FAQ
Q: How can I check if the mod is working?
A: If you haven't heard any voiceovers yet, there is a more reliable way. When you join the world, a message about the mod's status will appear. You can also use the /narrator status command. If you followed the instructions correctly, the message will be green. If you forgot some part of the voice model, it will be yellow. And if you didn't pay attention to the instructions at all, the message will be red. In any case, you won't get confused, and you'll know what needs to be fixed.
Q: What operating systems are supported?
A: Windows, Linux, macOS and Android. The necessary files will automatically be extracted to the config/Narrator/PiperTTS folder when the client is launched.
Q: Does Narrator require an Internet connection to work?
A: No. Narrator is completely autonomous and works without an Internet connection.
Q: Can Narrator break anything in my game world, computer, or simply be considered cheating?
A: No. Narrator is completely safe for your world, as it is entirely a client-side mod. It also does not do anything to your computer that Minecraft itself, your browser, or any other software that writes and reads data does not do. And it cannot be classified as a cheat, as it does not give the user any advantage whatsoever. It cannot amplify footstep sounds, show the location of mobs using echolocation, or do anything else that falls outside the definition of “text-to-speech”.
Q: How can I test the selected voice model directly in the game?
A: You can use the /narrator test command and write any text after it that will be voiced.
Q: How do I work with the cache if I want to find out its total size or clear it?
A: You can use the /narrator cache info command to check the size and number of files in the cache, and the /narrator cache clear command to completely clear the folder.
Q: How can I adjust the sound volume?
A: Narrator volume is linked to the Master Volume in the Music & Sounds settings.
Q: Does the mod have a config?
A: Yes. Narrator has a fairly comprehensive configuration file with clear parameter descriptions. You can customize all the mod's features to suit your modpack.
Q: If I don't want to listen to a long text, what should I do?
A: You can hover your cursor over any short text, such as the Done button, and the long text will be interrupted. But there is a better option. You can bind the Stop Narrator hotkey, which interrupts any narration when pressed.
Q: What if I want to turn off Narrator, but only until I restart, or turn it off and turn it back on after a while?
A: You can bind the Enable/Disable Narrator hotkey, which turns Narrator on and off for the current game session.
Q: I found something that isn't narrated at the moment / I have other questions. What should I do?
A: Let me know in the comments or, better yet, on our Discord server.
LEGAL DISCLAIMER: I have no affiliation with PiperTTS or Piper voice models. I do not own any rights to PiperTTS or Piper voice models. I only use them in accordance with their licenses and express my deepest gratitude to everyone involved in the development of PiperTTS and the Piper voice models.
评论 0
登录后参与评分
还没有评论,来抢沙发吧