Chatglot

Chatglot 是一款客户端侧的 Fabric 模组,让你能够理解使用其他语言的玩家——无论是在 聊天还是语音聊天中。
- Simple Voice Chat 的语音字幕: 其他玩家说的话会被转录到你的电脑上,进行翻译,并显示在他们头顶上方。
- 聊天翻译: 点击
✍ 一次即可翻译,或开启自动翻译,开箱即用的免费翻译功能。
仅限客户端使用。服务器和其他玩家无需安装 Chatglot。
语音字幕 (Simple Voice Chat)
与说其他语言的人一起玩,并在他们说话时实时阅读其内容。

- 说话者头顶的字幕。 原始转录文本及其译文会浮动在正在说话的玩家头顶。如果说话者不在视野内或处于群组通话中,则会以 HUD 形式显示。你也可以选择仅显示在头顶、头顶和 HUD 同时显示,或仅显示在 HUD 上。
- 在你的 PC 上运行,免费。 默认识别器是本地语音引擎(Whisper,附带 sherpa-onnx 运行时)。语音音频永远不会离开你的电脑,也不需要 API 密钥。支持 Windows x64、macOS x64/arm64 以及 Linux x64/arm64。
- 只有你需要它。 只需在你自己的客户端上安装。其他玩家和服务器只需像往常一样使用 Simple Voice Chat 即可。
- 专为繁忙的服务器构建。 多人可以同时说话:每个说话者依次处理,本地引擎按需添加识别器,长段落会被拆分以确保字幕跟上节奏。
- 选择你的模型。 Whisper Tiny / Base / Small、SenseVoice(对中文、英语、日语、韩语、粤语快速识别)、Parakeet(25 种欧洲语言)或 Omnilingual(1,600+ 种语言)。仅在按下 Download 时才会下载模型。
- 或使用 API。 支持 OpenAI 兼容的转录服务(OpenAI、Groq、自建实例)或 Gemini。
语音字幕默认关闭。在安装 Simple Voice Chat 2.6.19 或更高版本后,会在 Voice captions(语音字幕)设置选项卡中启用它们。字幕会在说话者暂停后出现,而非逐字显示;准确率取决于麦克风质量、俚语和名称。
聊天翻译
- 每条聊天消息上的翻译按钮(
✍,可配置),或自动翻译
- 开箱即用:默认提供商无需 API 密钥、账号或设置
- 将译文显示为新行,或替换原始消息
- 本地缓存可即时显示重复消息
- 你自己的消息: 在聊天输入框中选择输出语言,预览译文,并在发送前按
Tab 应用
- 告示牌: 瞄准告示牌并按下
G(可重新绑定)翻译其可见面
- 书籍: 在已书写的书、讲台或可书写书中按下
G 或 Translate(翻译)来翻译当前页面;书籍本身不会被修改

按 F8 或 /chatglot config 打开设置。/chatglot diagnose 测试所选提供商,/chatglot voice status 显示语音字幕状态。
翻译提供商
| Provider |
Requires |
default |
无需任何配置。Google 的非官方免费 Web API(非付费 Cloud Translation);可能会受限或在无通知的情况下更改。 |
gas |
你自己的 Google Apps Script Web 应用 URL |
deepl |
DeepL API 密钥 |
google |
Google Cloud Translation API 密钥 |
openai |
OpenAI API 密钥 |
custom_llm |
任何 OpenResponses 或 Chat Completions 端点(本地服务器的 API 密钥可选) |
gemini |
Gemini API 密钥 |
anthropic |
Anthropic API 密钥 |
azure |
Azure Translator API 密钥 + 区域 |
codex |
使用你的 ChatGPT 计划的浏览器 OAuth(一次性操作,令牌本地存储) |
translategemma_local |
仅限 Windows。在本地下载并运行 TranslateGemma;数据不会离开你的电脑 |
推荐提供商
default: 最适合入门。免费,无需设置,支持自动翻译。由于依赖非官方 API,在高强度使用时 Google 可能会对其进行速率限制;如果遇到这种情况,请切换到其他提供商。
gas: 使用你自己的 Google 账户进行的免费设置。Google Apps Script 为个人账户每天提供最多 5,000 次翻译调用,但配额可能会发生变化。请参阅 Apps Script 配额。
codex: 如果你已经订阅了 ChatGPT,这是推荐的选择。OpenAI 指出 Codex 包含在 ChatGPT Plus、Pro、Business、Edu 和 Enterprise 计划中,具体限额因计划而异。请参阅 Using Codex with your ChatGPT plan。
azure: 带有免费层的官方 API。根据 Microsoft 的定价页面,Azure Translator F0 每月免费提供 2 million 字符。请参阅 Azure Translator pricing。
translategemma_local: 如果你的电脑有足够的算力用于本地推理,这是一个不错的选择。设置完成后,它通过 localhost 运行,速度可能很快,且每次请求无需付费 API。
TranslateGemma 本地后端
translategemma_local(仅限 Windows)不在 Minecraft JVM 内部运行。设置屏幕中的下载按钮会预构建一个 llama.cpp Windows 运行时以及 mradermacher/translategemma-4b-it-GGUF 模型(translategemma-4b-it.Q4_K_M.gguf),然后在本地启动 llama-server.exe。文件存储在 config/chatglot/local-backend/ 中,当启用共享设置时,则存储在 %LOCALAPPDATA%/ChatglotLocal/。你可以在设置屏幕中覆盖运行时路径、模型路径、下载 URL 和共享目录。
Requirements
隐私 — 数据发送至何处
在您翻译内容、开启自动翻译或开启语音字幕之前,不会发送任何数据。
语音字幕
- 本地识别: 其他玩家的语音音频保留在您的 PC 上。模型文件仅在您按下 Download(下载)按钮或运行
/chatglot voice model install 时从 Hugging Face 下载。
- OpenAI 兼容 / Gemini 识别: 其他玩家的语音音频将被发送到您配置的转录服务。
- 静音玩家(音量为 0)以及超出语音聊天范围的音频永远不会被处理。
- 当开启 Translate captions(翻译字幕)时,转录文本将发送至您的翻译提供商。即使识别过程是本地的,
default(默认)提供商也是一个外部 Google 服务。
文本 —— 聊天消息、您的聊天草稿(仅当您按下翻译时)、告示牌的可见文本,或当前书页(仅当您翻译它时),以及用于 /chatglot diagnose 的固定文本 Hello:
| 提供程序 |
发送至 |
default |
Google 的非官方网页翻译 API(translate.googleapis.com,Google 隐私政策) |
gas |
您的 Google Apps Script 网络应用(Apps Script 条款) |
deepl |
DeepL API(隐私) |
google |
Google Cloud Translation(隐私) |
openai |
OpenAI API(数据控制) |
custom_llm |
您配置的基础 URL |
gemini |
Gemini API(条款) |
anthropic |
Anthropic API(隐私) |
azure |
Azure Translator(数据隐私) |
codex |
使用您的 OAuth 令牌的 OpenAI 服务。模型列表从 modelapi.yoima.com 获取;聊天内容不会发送到该处 |
translategemma_local |
仅在 127.0.0.1 上的本地服务器。安装过程会从 GitHub 下载 llama.cpp 运行时,并从 Hugging Face 下载模型 |
对于使用您自己的 API 密钥或账户的提供程序,数据处理遵循您与该提供程序之间的协议。已缓存在本地的结果会在不发送请求的情况下直接显示。
存储在您的 PC 上
- 翻译缓存(
config/chatglot/translation-cache.json,默认启用):针对相同的文本、语言和提供程序设置,成功的翻译将被复用,并且超出限制(默认为 5,000 条)的最旧条目会被移除。它以纯文本形式存储原始文本和翻译内容,包括聊天消息和语音转录。API 密钥和其他凭证绝不会存储在其中。可通过 /chatglot cache clear 命令或设置按钮清除它。
- 共享设置(
useSharedAppDataSettings):启用后,API 密钥、Codex 令牌位置、模型设置以及 TranslateGemma 的设置将存储在 %LOCALAPPDATA% 中,以便多个启动配置文件可以共用它们。这些数据保留在您的 PC 上,并不会因为此选项而被上传。
配置
所有选项均可在设置界面中进行配置。配置文件位于 config/chatglot/chatglot.json;主要设置项如下:
enabled、autoTranslateEnabled、provider
targetLanguage(例如 JA、EN、EN-US、ZH-HANS;默认跟随 Minecraft 语言)以及 outgoingTargetLanguage(默认:English)
overwriteOriginalWithTranslation、appendTranslateButton、translateButtonLabel、showTranslationPrefix
requestTimeoutSeconds(范围 5–240)、maxConcurrentTranslations(范围 1–16)
useSharedAppDataSettings、translationCacheEnabled、translationCacheMaxEntries
源码与许可证
GitHub — yoima-jp/Chatglot · MIT · 第三方通知(sherpa-onnx、语音模型)请参见 THIRD_PARTY_NOTICES.md
Chatglot

Chatglot is a client-side Fabric mod that lets you understand players who speak another language — in chat and in voice chat.
- Voice captions for Simple Voice Chat: what other players say is transcribed on your PC, translated, and shown above their heads.
- Chat translation: one click on
✍, or automatic, with free translation out of the box.
Client-side only. The server and other players do not need Chatglot.
Voice captions (Simple Voice Chat)
Play with people who speak another language and read what they say as they say it.

- Captions above the speaker. The original transcript and its translation float above the player who is talking. Speakers out of view or in a group call appear in the HUD instead. You can also choose above-head only, above-head and HUD, or HUD only.
- Runs on your PC, free. The default recognizer is a local speech engine (Whisper, bundled sherpa-onnx runtime). Voice audio never leaves your PC, and no API key is needed. Windows x64, macOS x64/arm64, and Linux x64/arm64 are supported.
- Only you need it. Install it on your own client. Other players and the server just need Simple Voice Chat as usual.
- Built for busy servers. Several people can talk at once: each speaker is handled in turn, the local engine adds recognizers as needed, and long speeches are split so captions keep up.
- Choose your model. Whisper Tiny / Base / Small, SenseVoice (fast for Chinese, English, Japanese, Korean, Cantonese), Parakeet (25 European languages), or Omnilingual (1,600+ languages). Models download only when you press Download.
- Or use an API. OpenAI-compatible transcription (OpenAI, Groq, self-hosted) or Gemini.
Voice captions are off by default. Turn them on in the Voice captions settings tab, which appears when Simple Voice Chat 2.6.19 or later is installed. Captions appear after a speaker pauses, not word by word; accuracy depends on microphones, slang, and names.
Chat translation
- A translate button (
✍, configurable) on every chat message, or automatic translation
- Works out of the box: the default provider needs no API key, account, or setup
- Show the translation as a new line or replace the original message
- A local cache shows repeated messages instantly
- Your own messages: pick an outgoing language in the chat input, preview the translation, and apply it with
Tab before sending
- Signs: aim at a sign and press
G (rebindable) to translate its visible face
- Books: press
G or Translate in a written book, lectern, or writable book to translate the current page; the book itself is never changed

Open the settings with F8 or /chatglot config. /chatglot diagnose tests the selected provider, and /chatglot voice status shows the voice caption state.
Translation providers
| Provider |
Requires |
default |
Nothing. Google's unofficial free web API (not paid Cloud Translation); it may be limited or changed without notice. |
gas |
Your own Google Apps Script web app URL |
deepl |
DeepL API key |
google |
Google Cloud Translation API key |
openai |
OpenAI API key |
custom_llm |
Any OpenResponses or Chat Completions endpoint (API key optional for local servers) |
gemini |
Gemini API key |
anthropic |
Anthropic API key |
azure |
Azure Translator API key + region |
codex |
Browser OAuth with your ChatGPT plan (one-time, token stored locally) |
translategemma_local |
Windows only. Downloads and runs TranslateGemma locally; nothing leaves your PC |
Recommended providers
default: Best for getting started. Free, needs no setup, and supports auto-translate. Because it relies on an unofficial API, Google may rate-limit it during heavy use; switch to another provider if that happens.
gas: A free setup with your own Google account. Google Apps Script documents up to 5,000 Translate calls per day for consumer accounts, though quotas can change. See Apps Script quotas.
codex: Recommended if you already subscribe to ChatGPT. OpenAI states that Codex is included with ChatGPT Plus, Pro, Business, Edu, and Enterprise plans, with plan-based limits. See Using Codex with your ChatGPT plan.
azure: An official API with a free tier. Azure Translator F0 includes 2 million characters free per month according to Microsoft's pricing page. See Azure Translator pricing.
translategemma_local: A strong option if your PC has headroom for local inference. After setup it runs over localhost, can be fast, and needs no paid API per request.
TranslateGemma local backend
translategemma_local (Windows only) does not run inside the Minecraft JVM. The setup buttons in the settings screen download a prebuilt llama.cpp Windows runtime and the mradermacher/translategemma-4b-it-GGUF model (translategemma-4b-it.Q4_K_M.gguf), then start llama-server.exe locally. Files are stored in config/chatglot/local-backend/, or %LOCALAPPDATA%/ChatglotLocal/ when shared settings are enabled. The runtime path, model path, download URL, and shared directory can be overridden in the settings screen.
Requirements
Privacy — what is sent where
Nothing is sent until you translate something, turn on automatic translation, or turn on voice captions.
Voice captions
- Local recognition: other players' voice audio stays on your PC. Model files are downloaded from Hugging Face only when you press Download or run
/chatglot voice model install.
- OpenAI-compatible / Gemini recognition: other players' voice audio is sent to the transcription service you configure.
- Muted players (volume 0) and audio outside voice chat range are never processed.
- With Translate captions on, the transcript is sent to your translation provider. The
default provider is an external Google service even when recognition is local.
Text — chat messages, your chat draft (only when you press translate), a sign's visible text, or the current book page (only when you translate it), and the fixed text Hello for /chatglot diagnose:
| Provider |
Sent to |
default |
Google's unofficial web translation API (translate.googleapis.com, Google Privacy Policy) |
gas |
Your Google Apps Script web app (Apps Script terms) |
deepl |
DeepL API (privacy) |
google |
Google Cloud Translation (privacy) |
openai |
OpenAI API (data controls) |
custom_llm |
The base URL you configure |
gemini |
Gemini API (terms) |
anthropic |
Anthropic API (privacy) |
azure |
Azure Translator (data privacy) |
codex |
OpenAI services with your OAuth token. The model list is fetched from modelapi.yoima.com; no chat content is sent there |
translategemma_local |
Only a local server on 127.0.0.1. Setup downloads the llama.cpp runtime from GitHub and the model from Hugging Face |
For providers that use your own API key or account, data handling follows your agreement with that provider. Results already in the local cache are shown without sending a request.
Stored on your PC
- Translation cache (
config/chatglot/translation-cache.json, on by default): successful translations are reused for the same text, language, and provider settings, and the oldest entries are removed past the limit (5,000 by default). It stores the original text and translations, including chat messages and voice transcripts, in plain text. API keys and other credentials are never stored in it. Clear it with /chatglot cache clear or the settings button.
- Shared settings (
useSharedAppDataSettings): when enabled, API keys, the Codex token location, model settings, and TranslateGemma settings are stored in %LOCALAPPDATA% so several launch profiles can reuse them. They stay on your PC and are not uploaded because of this option.
Configuration
Everything is available in the settings screen. The config file is config/chatglot/chatglot.json; key settings:
enabled, autoTranslateEnabled, provider
targetLanguage (e.g. JA, EN, EN-US, ZH-HANS; defaults to your Minecraft language) and outgoingTargetLanguage (default: English)
overwriteOriginalWithTranslation, appendTranslateButton, translateButtonLabel, showTranslationPrefix
requestTimeoutSeconds (5–240), maxConcurrentTranslations (1–16)
useSharedAppDataSettings, translationCacheEnabled, translationCacheMaxEntries
Source & license
GitHub — yoima-jp/Chatglot · MIT · Third-party notices (sherpa-onnx, speech models) are in THIRD_PARTY_NOTICES.md
评论 0
登录后参与评分
还没有评论,来抢沙发吧