# Repository Briefing: ciddwd/overlay-translator
> Source: https://repoforai.com/repo/ciddwd/overlay-translator (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/ciddwd/overlay-translator
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Kotlin
- **License**: Apache-2.0
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 13/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.4.8 (2026-10-24) — https://github.com/ciddwd/overlay-translator/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Self-Hosted, Local AI
- **Momentum**: 1,484 ★ total (+7 24h / +57 7d) · 75 forks
- **Topics**: `android`, `android-app`, `game-translation`, `gguf`, `kotlin`, `llama-cpp`, `llm`, `manga`, `manga-ocr`, `mlkit`, `no-root`, `ocr`
- **When to Use**: Best for: Android gamers, manga readers, and visual-novel players who need to translate text they cannot select and want to choose which stages stay on-device or run on their own server. Skip if: Built-in translation already covers your content, your device cannot run the published APK, or you need predictable low-latency subtitles from a player that blocks audio capture.

## Overview
```text
### Architecture & Core Mechanics
Overlay Translator is a Kotlin Android app built around a configurable pipeline: capture a screen region, recognize text, translate the resulting blocks, and render them in place or in a separate overlay. The Gradle tree separates `app/` and `llama-android/`; the local GGUF path uses llama.cpp, with JNI-backed batching for supported translation models and per-block fallback. The Manga OCR path uses ONNX recognition with a shared DBNet detector, while OCR orientation and reading order can feed directly into overlay layout.

Backend selection is independent across stages. OCR can run on-device, over a LAN HTTP endpoint such as Umi-OCR or LunaTranslator, or through a cloud provider; recognized text can go to ML Kit, a local GGUF model, machine translation, or an OpenAI- or Anthropic-compatible service. Optional TTS can use a different backend again. Playback translation takes a separate capture path: audio becomes a transcript through local or online speech recognition, then passes through the selected translator into a bilingual overlay.

### Key Capabilities & Differentiators
The app addresses text that other Android apps render but do not expose for selection. Full-screen and region modes handle one-off requests; stable-frame mode waits for the image to stop changing before translating again. Manga processing handles vertical reading order and furigana, and can replace text inside detected bubbles with rectangular fallback. A lockable floating window keeps translation away from game controls when in-place overlays get in the way. Background album jobs reuse presets and can save translated images with supported layouts.

The local translation options range from downloaded ML Kit language packs to Sakura for Japanese → Simplified Chinese, multilingual specialists such as Hy-MT2 and Index-Translate, and imported GGUF models. Glossaries can be scoped by app; app-name and glossary context are supported by local LLMs and OpenAI- or Anthropic-compatible services, not ordinary machine translation engines. For video and game dialogue, the initial playback-translation feature uses SenseVoice, Zipformer, Whisper, or online recognition and does not require an existing subtitle track.

### Trade-offs & Limitations
The most useful sizing data comes from a Debug build on a Snapdragon 8 Gen 3 phone with 16 GB RAM, not from a general device requirement. On one Japanese manga image, PP-OCRv6 Small in speed mode took 0.84 s for recognition and 2.51 s for the measured full OCR-side pipeline, versus 5.54 s and 6.45 s for Manga OCR, which produced more complete vertical bubbles. On a separate 12-segment Japanese-to-Simplified-Chinese translation run, ML Kit completed in 2.68 s versus Sakura's 7.15 s; those translation timings exclude OCR and Sakura's separate 3.66 s warm-up. Sakura produced stronger Chinese on that sample. These results support testing on representative pages rather than assuming a larger model or accuracy mode will always help.

Compared with built-in translation or an existing subtitle track, the overlay adds coverage for content rendered into pixels or audio, but also adds permissions, recognition errors and delay. Cloud backends may help where local engines struggle, but can send screenshots, audio, or text off-device and incur fees. LAN hosting moves processing off the phone without resorting to a public provider, but adds a service to operate. For local GGUF, file size is not working memory: context and runtime buffers compete with the game or reader. CPU is the primary path; experimental Vulkan should be tested on the actual handset rather than assumed to improve it.

### Hardware & Deployment Guide
Install the release APK on an `arm64-v8a` Android 8.0+ device; published builds do not cover 32-bit ARM or x86. A companion `.sha256` file is available for integrity checks. Set up overlay and notification permissions, then start the capture service. System capture asks for screen-sharing consent; Shizuku and root require their own authorization, and Accessibility capture requires Android 11+. Playback translation requires Android 10+, recording and screen-sharing permissions, and a player that permits audio capture. It captures playback, not microphone input.

For offline operation, prepare the chosen OCR and translation assets and, if needed, speech models or an offline system voice. Local LLM weights are separate from the APK. For a self-hosted or mixed deployment, configure the compatible endpoints individually; public endpoints require HTTPS by default. Re-enter credentials and restore local models and per-model tuning after moving an `.otsettings` profile. The v0.4.7 release added stable-frame and input translation; v0.4.8 added playback subtitles, gesture shortcuts, a quick panel, and dedicated local-model management.
```

## Key Capabilities
```text
- Capture: System screen sharing works without root; Shizuku, authorized Accessibility capture on Android 11+, and existing root are optional paths.
- OCR routing: Select ML Kit, PaddleOCR, or ONNX Manga OCR by language; LAN HTTP and cloud OCR can be configured independently of translation.
- Local inference: Download or import GGUF models, tune context and generation limits per model, and compare first-translation latency on identical input.
- Manga rendering: Bubble-aware layout can erase source text, restore the local background, and fall back to rectangular rendering when confidence is low.
- Playback translation: Android 10+ can turn capturable playback audio into bilingual overlays with local SenseVoice, Zipformer, or Whisper, or an online recognizer.
- Configuration portability: .otsettings carries transferable settings, presets, glossaries, and fonts, but omits credentials, local models, and per-model parameters.
```

## Quick Start / Clone
```bash
git checkout -b feat/your-idea  origin/main
```
