Repository navigation
Releases
TransPocket 0.1.4
TransPocket 0.1.4 fixes TranslateGemma in text mode, adds Index-Translate 2B as the quality default, lets you pick a quantization level for each LLM, and makes simultaneous interpretation stream.
- Fix: TranslateGemma (and Qwen3.5) showed nothing in text translation. The result was computed and then dropped before it reached the screen.
- Fix: with "TranslateGemma thinking" on, the reasoning note could appear in the translation.
- New: Index-Translate 2B (Bilibili, built on Qwen3.5, 150 languages) is the recommended quality model, about 1.9 GB of memory. The model list now shows Qwen3.5 0.8B (performance), Index-Translate 2B (quality) and TranslateGemma 4B (large). Mozilla, HY-MT and Madlad are under "Other models", where they can be chosen and downloaded.
- New: each of the three has a quantization menu, fastest on phone CPUs first. Q4_0, IQ4_NL and Q4_K are repacked for the phone's int8 instructions. IQ4_XS is the smallest 4-bit file but reads the prompt more slowly. Q8_0 where offered. An existing Q4_K_M download keeps working.
- Faster: llama.cpp now ships CPU builds for each ARM feature level (dotprod, i8mm, SVE, SME) and loads the best one. Before, every phone used the plain ARMv8.0 build.
- New (simultaneous interpretation, Settings, both on by default): "Streaming recognition" shows the sentence you are still saying, re-read about once a second. "Translate while speaking" translates its start once two live transcripts agree on it, at the next comma or after a few words, without waiting for the pause.
- Traditional Chinese is now requested as Traditional Chinese from the LLMs.
- Which APK to download: TransPocket-0.1.4-arm64-v8a.apk for phones (about 246 MB, was 416 MB), TransPocket-0.1.4-x86_64.apk for x86_64 devices such as emulators or Chromebooks, or TransPocket-0.1.4-universal.apk (both, about 351 MB) if you are unsure. 32-bit devices are not supported. The update check in the app picks the right one.
- Emoji in an LLM translation no longer risks a crash.
Tested: unit tests (156); the model list, Other page and quantization menus on an emulator; all three GGUF models inside the app on an x86_64 emulator (Qwen3.5, Index-Translate, TranslateGemma, including Traditional Chinese and emoji). Not yet tested on an ARM phone: GGUF speed with the new CPU builds, and streaming recognition/translation with a microphone. Please report problems.
The first upload of this release had a single arm64-only APK that some phones refused to install ("invalid package"); it was replaced by the three APKs above.
Update (APKs last replaced on 2026-10-29): LLM translation in simultaneous interpretation is much faster. An earlier replacement the same day kept the start of the prompt decoded and ended answers at the rating, but each sentence still re-read about 200 prompt tokens, and "Translate while speaking" gained nothing.
- Voice sentences are now one conversation per session: the fixed instructions, then each sentence with the model's answer. The native runtime keeps it decoded between sentences, so a new sentence only reads its own words (about 20–40 tokens instead of about 200). Qwen3.5 and Index-Translate are hybrid recurrent models; for them the runtime keeps small checkpoints so it can go back without starting over.
- The translation appears while the model writes it, and speech output can start on its first finished sentence.
- The model is loaded and reads its instructions while the microphone starts, so the first sentence no longer waits for it.
- "Translate while speaking" now pays off: the rest of a sentence continues the cached conversation, and an early piece that already shows text is kept instead of being translated again.
- Only TranslateGemma rates its own sentences. Asked for a [Q=n] line, Qwen3.5 0.8B rated almost everything 1 and often repeated the instructions, and Index-Translate copied up to 130 tokens of instructions into the answer for short pieces. Their sentences are now graded from recognition and translation signals only. TranslateGemma's rating takes 2 decoding steps instead of 6.
- TranslateGemma thinking now applies to text translation only.
- Qwen3-ASR: a live-transcript pass that is still running when the sentence ends is stopped, so the final transcript does not wait for it.
Measured on an x86_64 emulator with the release APK, 10 English sentences into Chinese, average per sentence after the first ("v0.1.2 prompts" are the old prompts run on the same emulator; v0.1.2 showed nothing until the end):
| Model | 0.1.4 before | now | first text now | v0.1.2 prompts |
|---|---|---|---|---|
| Qwen3.5 0.8B | 756 ms | 293 ms | 121 ms | 450–510 ms |
| Index-Translate 2B | 1277 ms | 727 ms | 325 ms | 1120–1229 ms |
| TranslateGemma 4B | 2432 ms | 1646 ms | 373 ms | 2433–2553 ms |
With "Translate while speaking", the part after an early piece: 573 → 251 ms, 1133 → 611 ms, 2128 → 1457 ms. Chinese into English is about the same. A phone is slower than this emulator; the ratios should carry over, but this was not measured on an ARM phone, and the full pipeline with a microphone was not run on the emulator.
Same version (0.1.4, version code 32); install over the earlier 0.1.4. The in-app update check does not offer it because the version did not change. Built from commit b9fe2a6 on main.
Full changelog: v0.1.3...v0.1.4
中文摘要:
- 修复:TranslateGemma(以及 Qwen3.5)在文本翻译里不输出。结果已经算出来了,但没有送到界面上。
- 修复:开启“TranslateGemma 思考模式”时,推理内容可能混进译文。
- 新增:Index-Translate 2B(哔哩哔哩,基于 Qwen3.5,支持 150 种语言)作为默认推荐的质量档,约需 1.9 GB 内存。模型列表只保留 Qwen3.5 0.8B(性能)、Index-Translate 2B(质量)和 TranslateGemma 4B(大模型);Mozilla、HY-MT、Madlad 移到“其他模型”页面,可在那里选择和下载。
- 新增:三个模型都可以选量化档位,按手机 CPU 上的速度从快到慢排列。Q4_0、IQ4_NL、Q4_K 会针对手机的 int8 指令重排权重;IQ4_XS 文件最小,但读入原文更慢;部分模型提供 Q8_0。已下载的 Q4_K_M 继续可用。
- 更快:llama.cpp 现在按 ARM 指令级别(dotprod、i8mm、SVE、SME)分别编译,运行时选最合适的版本;之前所有手机都用最基础的 ARMv8.0 版本。
- 新增(同声传译,设置中默认开启):“流式语音识别”边说边显示正在说的这句话(约每秒更新一次);“边说边译”在两次实时识别对句首一致后,就在下一个逗号处或几个词之后先翻译,不等停顿。
- 繁体中文现在会以繁体中文的要求发给大模型。
- 下载哪个 APK:手机下载 TransPocket-0.1.4-arm64-v8a.apk(约 246 MB,原 416 MB);模拟器、Chromebook 等 x86_64 设备下载 TransPocket-0.1.4-x86_64.apk;不确定就下载 TransPocket-0.1.4-universal.apk(两者都含,约 351 MB)。不支持 32 位设备。App 内的更新检查会自动选对应的包。
- 大模型译文里出现 emoji 不再有崩溃风险。
- 已测试:单元测试、模拟器上的模型列表/其他模型页面/量化菜单,以及在 x86_64 模拟器的 App 进程里跑通三个 GGUF 模型(含繁体中文和 emoji)。尚未在 ARM 真机上测试:新 CPU 版本的速度、带麦克风的流式识别与边说边译。
- 本版最初上传的是只含 arm64 的单个 APK,部分手机提示“安装包无效”,已替换为上面三个安装包。
更新(2026-10-29 最后一次替换安装包):同声传译中大模型翻译大幅提速。 同一天较早的一次替换保留了提示词开头、并在评分处结束输出,但每句仍要重新读入约 200 个 token 的提示词,“边说边译”也没有带来提升。
- 语音句子现在在一次会话中组成一段连续对话:固定说明在前,后面是每一句和模型给出的译文。原生运行时在句与句之间保留已读入的内容,新的一句只读入它自己的文字(约 20–40 个 token,原来约 200 个)。Qwen3.5 和 Index-Translate 是混合循环模型,运行时为它们保存小的检查点,回退时不必从头读。
- 译文在模型输出时就逐步显示,朗读也可以在第一句写完时开始。
- 麦克风启动的同时加载模型并读入说明,第一句话不再等待模型加载。
- “边说边译”现在真正有效:句子剩下的部分接着同一段已缓存的对话翻译;已经显示译文的前半句会保留,不再整句重译。
- 只有 TranslateGemma 给自己的译文评分。要求输出 [Q=n] 时,Qwen3.5 0.8B 几乎每句都打 1 分并常常重复说明,Index-Translate 会把多达 130 个 token 的说明抄进短片段的译文。这两个模型现在只根据识别和翻译信号评级。TranslateGemma 的评分从 6 步解码减少到 2 步。
- TranslateGemma 思考模式只用于文本翻译。
- Qwen3-ASR:句子结束时仍在运行的实时字幕识别会被停止,最终识别不再等待它。
x86_64 模拟器、正式版 APK、10 句英文译成中文,第一句之后每句的平均耗时(“v0.1.2 提示词”是在同一模拟器上运行旧提示词;v0.1.2 要等全部译完才显示):
| 模型 | 0.1.4 之前 | 现在 | 现在首字出现 | v0.1.2 提示词 |
|---|---|---|---|---|
| Qwen3.5 0.8B | 756 ms | 293 ms | 121 ms | 450–510 ms |
| Index-Translate 2B | 1277 ms | 727 ms | 325 ms | 1120–1229 ms |
| TranslateGemma 4B | 2432 ms | 1646 ms | 373 ms | 2433–2553 ms |
开启“边说边译”时,前半句之后剩余部分:573 → 251 ms,1133 → 611 ms,2128 → 1457 ms。中文译英文结果相近。手机比这台模拟器慢,比例应当相近,但尚未在 ARM 真机上测速,也没有在模拟器上用麦克风跑完整流程。
版本号不变(0.1.4,版本代码 32),直接覆盖安装之前的 0.1.4 即可;因为版本号没变,App 内的更新检查不会提示。构建自 main 分支的提交 b9fe2a6。
TransPocket 0.1.3
TransPocket 0.1.3 marks sentences that were probably misheard and keeps them from spoiling the translation of the sentences after them.
- "Mark doubtful sentences" (Settings, on by default): simultaneous interpretation and WalkieTalkie grade every sentence. A sentence that was probably misheard shows "Recognition uncertain" (orange) or "Possibly wrong" (red) under the translation. The grade mostly comes from speech recognition (the recognizer's own confidence, an implausible speaking rate, typical phantom phrases such as "Thank you for watching", repeated loops); translation checks can only lower it.
- Model self-rating: with Qwen3.5 or TranslateGemma, the model is told the text is a speech transcript and rates its own result. The rating is never shown or spoken, and it can only lower the grade. HY-MT, Mozilla and Madlad cannot rate themselves and use the signals only; the setting's description tells you which applies to the selected model.
- Smarter simultaneous context: a misheard sentence is no longer passed on as context. The last few trusted sentences are kept instead, so one bad sentence does not derail the next ones. Uncertain sentences only reach models that can be told they may be wrong, and the context is dropped after 15 s without a trusted sentence.
- "Ignore context in simultaneous interpretation" (Settings, off by default) translates every sentence on its own.
- Prompts: HY-MT uses its official contextual translation template; Qwen3.5 and TranslateGemma get the earlier sentences as reference instead of having them glued onto the text.
- Qwen3-ASR now reports a real recognition confidence.
- arm64-v8a only, minSdk 28. The grading thresholds are first values and have not yet been tuned on many devices; please report sentences that are marked wrongly.
Full changelog: v0.1.2...v0.1.3
中文摘要:
- 新增“标记可能有误的句子”(默认开启):同声传译和对讲机模式会给每句评级,可能识别有误的句子会在译文下方标出“识别存疑”(橙色)或“可能有误”(红色)。评级主要依据语音识别信号(识别置信度、不合理的语速、“谢谢观看”等常见幻觉短语、重复循环),翻译阶段的检查只会降低评级。
- 模型自评:使用 Qwen3.5 或 TranslateGemma 时,模型会知道原文来自语音识别,并给自己的结果打分;分数不会显示或朗读,且只会降低评级。HY-MT、Mozilla、Madlad 不支持自评,只使用信号打分,设置项说明会注明当前模型是否支持。
- 同声传译上下文更聪明:识别有误的句子不再作为上下文传下去,而是保留前几句可信的句子,一句听错不会带偏后面的翻译;存疑的句子只提供给能被告知“可能有误”的模型;15 秒内没有可信句子时上下文自动清空。
- 新增“同声传译忽略上下文”(默认关闭),开启后每句单独翻译。
- Prompt 优化:HY-MT 改用官方上下文翻译模板;Qwen3.5 和 TranslateGemma 以参考信息的形式获得前文,不再把前文拼进原文。
- Qwen3-ASR 现在会报告真实的识别置信度。
TransPocket 0.1.2
TransPocket 0.1.2 adds spoken-language auto-detection and stops speech in other languages from being forced into the selected one.
- Speech in other languages is ignored: before a clause is decoded, the speech model's own language ID is checked. A clause that is clearly in none of the session languages is dropped instead of being forced into the selected language, so it is no longer translated, spoken, or kept as simultaneous-interpretation context. Works with Whisper and Qwen3-ASR in WalkieTalkie, Conversation, and simultaneous interpretation. Clips shorter than 1 s and commonly confused languages (for example Chinese and Cantonese) are never dropped. Settings → "Ignore speech in other languages" turns it off.
- "Auto-detect" for the spoken language in every mode:
- Simultaneous interpretation translates each clause from its detected language; speech already in the target language is skipped.
- WalkieTalkie: one side can be auto-detected. The fixed side is translated into the language the other person spoke last.
- Conversation detects your language per utterance and tells the peers.
- Text mode detects the typed text with FastText.
- Update check: at most once a day the app asks GitHub for the latest release (only the app version is sent; can be turned off). Settings → "Check for updates" checks right away. Downloading opens the APK in the browser.
- Fixed typed WalkieTalkie text of seven words or more doing nothing and leaving the microphone off.
- arm64-v8a only, minSdk 28. Not yet verified on every device and model combination; please report problems.
Full changelog: v0.1.1...v0.1.2
中文摘要:
- 明显不属于当前会话语言的语音不再被强行识别为所选语言,会被直接丢弃,不翻译、不朗读、不进入同传上下文(设置中“忽略其他语言的语音”可关闭)。
- 所有模式的说话语言都新增“自动检测”:同声传译逐句检测;对讲机可让一侧自动检测;对话模式按句检测并通知对方;文本模式自动识别输入语言。
- 新增从 GitHub 自动检查更新(每天最多一次,可关闭),设置中可手动“检查更新”。
- 修复对讲机输入 7 个词以上文字时无反应且麦克风不再开启的问题。
TransPocket 0.1.1
TransPocket 0.1.1 is a patch release focused on speech recognition and model defaults.
- Whisper Small works again: the merged encoder is padded to its fixed 3000-mel-frame window. The previous build declared a dynamic frame axis, failed in the encoder
Addnode, and produced no transcript. - Speech recognition language lock: the selected language is the decoder condition by default. The script guard is advisory and never drops a transcript; a model without a token for the code falls back to auto-detect.
- Qwen3-ASR 0.6B is the default recommendation, listed before Qwen3-ASR 1.7B, Whisper Small, and Whisper Large V3 Turbo. Qwen3-ASR is described as lower latency and more accurate.
- Whisper defaults to fp16 for both Small and Turbo. An existing int4/int8 download keeps working until the user changes the level.
- FireRedVAD remains the default simultaneous-interpretation VAD; Silero stays selectable.
- Fixed the error dialog that reported a missing Tatoeba download when the actual failure was the Mozilla voice model.
- arm64-v8a only, minSdk 28. Models are downloaded on first launch. Qwen3-ASR 0.6B is a 1.9 GB download and needs about 2.2 GB of extra RAM.
Full changelog: v0.1.0...v0.1.1
中文摘要:修复 Whisper Small 的 3000 帧补帧问题;语音识别语言锁定与守卫改为诊断;默认推荐 Qwen3-ASR 0.6B,ASR 顺序为 Qwen3-ASR 0.6B、1.7B、Whisper Small、Whisper Large V3 Turbo;Whisper 默认 fp16;FireRedVAD 仍为默认;修复 Tatoeba 错误提示错位。
TransPocket 0.1.0
TransPocket 0.1.0 is a fork of niedev/RTranslator.
The upstream Apache-2.0 license stays in LICENSE.txt. Fork changes and the combined distribution are GPL-3 (LICENSE).
This is still 0.1.0. It replaces the previous APK.
- Application id
io.github.maoruiqa.transpocket, so it can sit beside RTranslator. The FileProvider authority belongs to this id. - arm64-v8a only. minSdk 28. A phone needs about 6 GB of RAM.
- Models are not in the APK. The app downloads them on first launch.
- The home icon, the recents icon, and the cold-start screen follow the selected palette. Every icon uses the light mark.
- Autumn gold titles and language buttons use the same gold as the mode icons. The Conversation icon follows the selected palette.
- Simultaneous interpretation uses Silero VAD.
- Translation: Bergamot, Madlad, HY-MT, TranslateGemma, and Qwen3.5.
- Speech recognition: Whisper and Qwen3-ASR. Speech output uses the Android system TTS.
- Five palettes: autumn gold, bamboo, indigo, sakura, and wisteria.
Chinese notes: README.zh-CN.md