[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111117":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":13,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":16,"starSnapshotCount":16,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},111117,"overlaysubs","sp-yduck\u002Foverlaysubs","sp-yduck","A desktop app that transcribes and translates any audio playing on your PC in real time and shows the result as an overlay of subtitles. ","https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F",null,"Rust",78,8,1,5,0,21,48.81,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,35,36],"desktop-app","japanese","llama-cpp","macos","overlay","plamo","realtime-translation","rust","speech-recognition","subtitles","tauri","whisper-cpp","windows","2026-11-21 12:48:59","2026-11-19 08:38:58","# OverlaySubs\n\n**English** · [日本語](README.ja.md)\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Latest release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fsp-yduck\u002Foverlaysubs?label=release&sort=semver)](https:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Freleases\u002Flatest)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-blue.svg)](LICENSE)\n[![Windows x64](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-Windows%20x64-0078d4.svg)](#requirements)\n[![macOS Apple Silicon](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-macOS%20Apple%20Silicon-lightgrey.svg)](#requirements)\n\nA desktop app that transcribes and translates any audio playing on your PC in real time and shows the result as an overlay of subtitles. Audio and text are processed locally on your device — no API key is needed, and no audio or text is sent to an external service.\n\n**Built with PLaMo.** Translation uses Preferred Networks' [PLaMo 3 Translate](https:\u002F\u002Fhuggingface.co\u002Fpfnet\u002Fplamo-3-translate-0.8b-GGUF).\n\n## Screenshots\n\n**Settings** — translation options, languages and recent subtitles.\n[![Settings screen](docs\u002Fimages\u002Fui-settings.png)](docs\u002Fimages\u002Fui-settings.png)\n\n**Model setup** — on first run the app detects your hardware, picks a tier and downloads the matching models.\n[![Model setup screen](docs\u002Fimages\u002Fui-model-setup.png)](docs\u002Fimages\u002Fui-model-setup.png)\n\n**Subtitle overlay** — drawn on top of other apps; click-through is available in the settings (background is illustrative).\n[![Subtitle overlay](docs\u002Fimages\u002Foverlay.jpg)](docs\u002Fimages\u002Foverlay.jpg)\n\n## For users (download and install)\n\n**You do not need a GitHub account.** If you just want to use the app, follow the instructions on the official site.\n\n- Official site (download, install, usage, FAQ, uninstall, license): \u003Chttps:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F>\n- Windows 10 \u002F 11 (x64): [overlaysubs-windows-x64-setup.exe](https:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Freleases\u002Flatest\u002Fdownload\u002Foverlaysubs-windows-x64-setup.exe) (recommended)\n- Windows (MSI): [overlaysubs-windows-x64.msi](https:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Freleases\u002Flatest\u002Fdownload\u002Foverlaysubs-windows-x64.msi) (installs per-machine and asks for Administrator; the `.exe` is recommended)\n- macOS 13+ (Apple Silicon): [overlaysubs-macos-arm64.dmg](https:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Freleases\u002Flatest\u002Fdownload\u002Foverlaysubs-macos-arm64.dmg) (no Intel Mac build)\n- Checksums: [SHA256SUMS.txt](https:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Freleases\u002Flatest\u002Fdownload\u002FSHA256SUMS.txt) \u002F releases: \u003Chttps:\u002F\u002Fgithub.com\u002Fsp-yduck\u002Foverlaysubs\u002Freleases\u002Flatest>\n\nInstall steps, what to do when Windows SmartScreen or macOS Gatekeeper warns you, SHA-256 verification, usage, the FAQ, and uninstalling are all on the official site:\n[Install](https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F#install) \u002F [Warnings](https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F#warning) \u002F [Usage](https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F#usage) \u002F [FAQ](https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F#faq) \u002F [Uninstall](https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F#uninstall) \u002F [License and terms](https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F#license)\n\n> The builds are **not signed with an Apple Developer ID or a Windows code-signing certificate, and not notarized** (the macOS app is ad-hoc signed only), so SmartScreen \u002F Gatekeeper warn on first launch. That does not mean the app is unsafe. See [Warnings](https:\u002F\u002Fsp-yduck.github.io\u002Foverlaysubs\u002F#warning) on the site, and never disable Gatekeeper or SmartScreen system-wide.\n\n## Contents\n\n- [Screenshots](#screenshots)\n- [Requirements](#requirements)\n- [Architecture](#architecture)\n- [Features](#features)\n- [Models and tiers](#models-and-tiers)\n- [Build](#build)\n- [Tests](#tests)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Requirements\n\n| | Windows | macOS |\n|---|---|---|\n| OS | Windows 10 \u002F 11 (64-bit) | macOS 13 Ventura or later |\n| CPU | x64 (Intel \u002F AMD) | Apple Silicon (M1 or later) |\n| GPU | **Recommended: Vulkan-capable GPU with an up-to-date driver** (runs on the CPU without one) | Integrated GPU (Metal) |\n| Memory | 8 GB or more | 8 GB or more |\n| Free disk space | Model download size (see [Models and tiers](#models-and-tiers)) | Same |\n\n- You do **not** need to install a Vulkan runtime to start the Windows app: the installer ships Khronos' Vulkan loader (`vulkan-1.dll`, Apache-2.0), because the official `--features vulkan` build links `vulkan-1` at load time. On a PC with no Vulkan-capable GPU or with an old driver the loader finds no device and the app runs on the CPU (use the CPU-tier models; it is slower).\n- A **Vulkan-capable GPU with a current driver is strongly recommended** for real-time speed. With an old driver the GPU is not used and performance is not usable in real time.\n- There is no Intel Mac build, no 32-bit Windows build, and no Windows on ARM build.\n- The only supported distribution channel is **GitHub Releases**; there is no auto-updater. The app only notifies you when a newer release exists and links to its release page.\n\n## Architecture\n\n```\nWASAPI loopback (Windows) \u002F ScreenCaptureKit system audio (macOS) \u002F microphone ─▶ 16 kHz mono ─▶ Silero VAD endpointer ─▶ whisper.cpp ─▶ PLaMo 3 Translate (llama.cpp) ─▶ overlay\n```\n\n- `crates\u002Fcore` holds engine-independent logic: tier selection, model definitions, PFML3 prompts, utterance segmentation, sessions, sentence-level translation, and SRT export. Run `cargo test -p overlaysubs-core`.\n- `src-tauri` is the Tauri app: audio capture, whisper.cpp \u002F llama.cpp adapters, model downloads, tray, hotkeys, and settings persistence.\n- `ui` is the settings window and overlay: plain HTML\u002FJS\u002FCSS with no build step; `ui\u002Fi18n.js` holds the Japanese, English and Chinese (Traditional and Simplified) strings.\n- The ASR and translation engines sit behind the `session::Asr` \u002F `session::Translator` traits and can be swapped.\n- `models.json` defines the models (URL, size, SHA-256, tier). URLs are pinned to Hugging Face commits (using `main` would break the hash when upstream re-uploads). Placing a `models.json` in the config folder overrides the bundled one without an app update.\n- `licenses\u002F` ships the OverlaySubs Terms of Use (English and Japanese); `THIRD_PARTY_NOTICES.md` lists the bundled libraries' licenses. The PLaMo Community License (revised November 9, 2026) is not bundled; the app and docs link to the official page instead.\n\n## Features\n\n- First run asks you to accept the OverlaySubs Terms of Use. Acceptance is stored in `terms-accepted` and not asked again until the terms version changes. \"Check this PC\" in the settings window detects your hardware and picks a tier (High \u002F Mid \u002F Low \u002F CPU). The result is cached in `hardware.json`, so later launches show it without probing again; \"Check again\" re-runs the check.\n- Models download from Hugging Face automatically, resume after interruption, and are verified with SHA-256. No account or token required.\n- You can run the optional speed check (benchmark); if it cannot keep up in real time, it switches to one tier lower.\n- Audio input is system audio or a microphone. Windows captures system audio with WASAPI loopback; on macOS 13+ system audio is captured directly with ScreenCaptureKit, so no loopback \u002F virtual-audio device (such as BlackHole) is needed. \"App audio\" translates only one chosen app when several are playing sound (Windows 10 version 2004 or later, via WASAPI process loopback; macOS via a ScreenCaptureKit app filter). The microphone works on both platforms. The first time you use system audio on macOS, allow OverlaySubs under System Settings → Privacy & Security → \"Screen & System Audio Recording\" (macOS 15+) or \"Screen Recording\" (macOS 13–14), then restart the app. Changing the audio input takes effect after you stop and start translation again.\n- Source language auto-detect or fixed. You can pick the target language and the \"if already in that language\" language, so English↔Japanese and Korean↔Japanese work together. Changing the languages while translating takes effect from the next utterance.\n- Previous utterances are passed as context and translation happens per sentence. Glossary, a free-text topic hint, and Japanese plain\u002Fpolite style are configurable. Changing the translation tuning while translating takes effect from the next utterance.\n- Partial results are dimmed; final translations stream in and replace them.\n- Always-on-top, semi-transparent overlay (click-through can be enabled in settings). The overlay and caption background colors and opacities; the translation's font, size, color, weight and line height; whether to show the original text and its size and color; the caption alignment, vertical position and line count; and how long subtitles stay after updates stop are all adjustable. When the lines are taller than the overlay, the scrollbar on the right or the mouse wheel scrolls through them (the wheel moves half a line per notch; with click-through off). While the subtitles keep updating, older lines stay until the line count pushes them out. The overlay appears while translating and hides when translation stops; you can also toggle it from \"Show subtitles\" in the tray menu or with the switch above the Start button. While translation is stopped, opening \"Subtitles\" shows the overlay with a sample caption so you can tune the appearance live.\n- Browser source: turn on \"Serve the subtitles to a browser source\" under \"Subtitles\" and add the URL shown there (default `http:\u002F\u002F127.0.0.1:17777\u002F`) as a browser source in your streaming software. The subtitles appear on a transparent background with the appearance set in the app (the overlay background color is left out); position and size are set in the streaming software. If its browser source has a custom CSS field, that can override the look for the stream only, for example `:root { --size: 40px !important; }`. The server is off by default, listens on this PC only (127.0.0.1), and sends the subtitles and their appearance settings to whatever connects from this PC. If the port is taken, change it in the same place.\n- Export history as text or SRT.\n- Tray\u002Fmenu-bar resident, global hotkey (default `CmdOrCtrl+Shift+T`; `Ctrl+Shift+T` on Windows, `Cmd+Shift+T` on macOS) to start\u002Fstop. UI in English, Japanese and Chinese (Traditional and Simplified); the first launch picks one from the OS language settings, and falls back to English. The Terms of Use exist only in Japanese and English, so the Chinese UI shows the English version.\n- At startup the app makes one anonymous request to the GitHub Releases API to check for a newer version; if there is one, a dismissible banner in the settings window shows the latest and current version with \"Open release page\" and \"Later\" buttons. Nothing is downloaded or installed automatically, and if the check fails (offline, API error) nothing is shown. Dismissing the banner lasts until the app restarts.\n- Audio, transcripts, and translations are never sent anywhere. No telemetry. The only network access is the model download and one anonymous GitHub API request at startup to check for a newer release (it sends no account, token, or personal data; if it fails, nothing happens). The app works offline once the models are downloaded.\n\n## Models and tiers\n\nThe tier is decided when you run \"Check this PC\" in first-run setup, and the models for that tier are selected automatically. The settings window lets you change the individual Whisper \u002F PLaMo \u002F VAD models. The detection result is cached; run \"Check again\" after changing the hardware, such as a new GPU.\n\nEach of the three models also has a **Runs on** choice — **Auto \u002F GPU \u002F CPU** — in the settings window where the backend supports it: Whisper and PLaMo can use either, while VAD is CPU-only upstream (whisper.cpp forces GPU VAD off). \"Auto\" uses the GPU when one was detected and the CPU otherwise; if loading a model on the GPU fails, the app retries it on the CPU. A model or Runs-on change takes effect the next time you start translating.\n\n| Tier | Detected when | Whisper | PLaMo 3 Translate | First download |\n|---|---|---|---|---|\n| High | VRAM 12 GB+ \u002F Apple Silicon RAM 32 GB+ | large-v3-turbo | 8B Q4_K_M | ~6.9 GB |\n| Mid | VRAM 8 GB \u002F Apple Silicon RAM 16 GB | large-v3-turbo Q5_0 | 2B Q4_K_M | ~2.4 GB |\n| Low | VRAM 4–6 GB \u002F Apple Silicon RAM 8 GB | small | 2B Q4_K_M | ~2.3 GB |\n| CPU | No GPU, or VRAM under 4 GB | base | 0.8B Q4_K_M | ~0.7 GB |\n\n- Sizes are the sum of the declared sizes in `models.json` (including the ~0.9 MB Silero VAD). Allow about 10 GB free for High, 5 GB for Mid\u002FLow, and 2 GB for CPU.\n- Mid uses 2B instead of 8B because keeping Whisper and 8B Q4_K_M (5.3 GB) together in 8 GB of VRAM leaves no headroom for gaming. You can switch to 8B Q3_K_M or 31B manually in the settings window.\n- The benchmark is optional. If you run it and the machine cannot keep up in real time, it suggests one tier lower and can switch to it.\n\n## Build\n\nPrerequisites: Rust stable (edition 2021). On Windows, MSVC + Windows SDK, CMake, LLVM \u002F libclang (for bindgen), and WebView2. The **Vulkan SDK is only needed for `--features vulkan`** (the official GPU build); the loader from it must be copied into `src-tauri\u002Flibs\u002F` before bundling (see below), and a build without GPU features is a CPU-only build that needs no Vulkan SDK. On macOS, Xcode 26 or Command Line Tools with the macOS 26 SDK: the ScreenCaptureKit bindings compile a small Swift bridge at build time, and the Metal dependency they link needs the macOS 26 SDK. Source builds need a Swift toolchain. Release CI selects the preinstalled Xcode 26 on the `macos-15` runner. Node.js is only needed to run the Tauri CLI through `npx` (not for the app itself).\n\n```bash\n# Windows (Vulkan, same as the official build)\nnpx --yes @tauri-apps\u002Fcli@2.12.4 build --features vulkan\n\n# Windows (CPU only; needs no Vulkan SDK)\nnpx --yes @tauri-apps\u002Fcli@2.12.4 build\n\n# macOS (Metal)\nnpx --yes @tauri-apps\u002Fcli@2.12.4 build --features metal\n\n# NVIDIA\nnpx --yes @tauri-apps\u002Fcli@2.12.4 build --features cuda\n```\n\nYou can also `cargo install tauri-cli --version \"^2\" --locked` and use `cargo tauri build`. CI uses the prebuilt `npx @tauri-apps\u002Fcli@2.12.4` because `cargo install tauri-cli` took up to 19 minutes.\n\nwhisper.cpp and llama.cpp both embed ggml, so statically linking both into one process clashes on symbols. llama.cpp is therefore linked as a shared library (`dynamic-link` in `llama-cpp-2`) and shipped inside the installer.\n\n- Windows: `src-tauri\u002Flibs\u002F*.dll` is bundled via `bundle.resources`. `src-tauri\u002Flibs\u002F` is gitignored, so before bundling copy llama.cpp's build output (`target\u002Frelease\u002Fbuild\u002Fllama-cpp-sys-2-*\u002Fout\u002Fbin\u002F*.dll`) into `src-tauri\u002Flibs\u002F`; for `--features vulkan` also copy the Khronos Vulkan loader that the SDK's Vulkan Runtime installer (bundled with SDK 1.4.313.1+) placed in `\"%SystemRoot%\\System32\\vulkan-1.dll\"`. `overlaysubs.exe` has a load-time import of `vulkan-1.dll`, so an installer built with Vulkan features but without the loader fails to start on PCs that have no Vulkan runtime. The CI steps are in `.github\u002Fworkflows\u002Frelease.yml`.\n- macOS: `beforeBundleCommand` runs `scripts\u002Fstage-dylibs.sh`, which collects the dylibs into `target\u002Fframeworks`; `bundle.macOS.files` ships them in `Frameworks`.\n- `THIRD_PARTY_NOTICES.md` is bundled too (see `src-tauri\u002Ftauri.windows.conf.json` and `tauri.macos.conf.json`).\n- macOS: `src-tauri\u002FInfo.plist` is merged into the bundle's generated Info.plist (`bundle.macOS.infoPlist`). It declares the microphone and screen\u002Fsystem-audio usage strings (`NSMicrophoneUsageDescription` \u002F `NSScreenCaptureUsageDescription`).\n\n## Tests\n\nThe network-free core tests run in CI (`.github\u002Fworkflows\u002Fci.yml`) on pull requests.\n\n```bash\ncargo test -p overlaysubs-core   # tiers, model registry, PFML3, endpointer, session, SRT\ncargo test -p overlaysubs        # src-tauri unit tests\n```\n\nThe end-to-end test with real models is `#[ignore]`d by default (it needs a 16 kHz mono WAV and downloads ~0.7 GB of models).\n\n```bash\nOVERLAYSUBS_WAV=path\u002Fto\u002F16k-mono.wav cargo test -p overlaysubs -- --ignored\n```\n\nTo measure what a change does to speed and quality, run the benchmark on the same clips before and after it. It replays the clips as live audio and reports the engine load, the caption delay and the character error rates; `scripts\u002Fbench.sh` documents the inputs.\n\n```bash\nscripts\u002Fbench.sh clips\u002F                              # on main: writes target\u002Fbench\u002F\u003Ccommit>.json\nscripts\u002Fbench.sh clips\u002F target\u002Fbench\u002F\u003Ccommit>.json   # on your branch: compares with that report\n```\n\nPushing a `v*` tag makes the release workflow build the bundles and publish them to GitHub Releases; see [RELEASING.md](RELEASING.md).\n\n## Contributing\n\n- [CONTRIBUTING.md](CONTRIBUTING.md) — dev environment, tests, PR flow\n- [SECURITY.md](SECURITY.md) — how to report vulnerabilities privately\n- [RELEASING.md](RELEASING.md) — release process (maintainers)\n- [docs\u002Findex.html](docs\u002Findex.html) — end-user documentation (the GitHub Pages source: English `docs\u002Findex.html`, Japanese `docs\u002Fja\u002Findex.html`, shared CSS `docs\u002Fstyle.css`; `docs\u002Fen\u002Findex.html` is a redirect stub for old links). The English page is self-contained with no external CDN, fonts, or JS.\n- Issue templates: [bug report](.github\u002FISSUE_TEMPLATE\u002Fbug_report.yml) \u002F [feature request](.github\u002FISSUE_TEMPLATE\u002Ffeature_request.yml)\n\n## License\n\n- **The app code is MIT licensed** ([LICENSE](LICENSE)).\n- Use of the app is governed by the [OverlaySubs Terms of Use](licenses\u002Foverlaysubs-terms.en.txt) ([Japanese](licenses\u002Foverlaysubs-terms.ja.txt)). You accept them on first launch, and they are also available from \"About\" in the app.\n- Use of the PLaMo 3 Translate translation model is governed by the [PLaMo Community License](https:\u002F\u002Fplamo.preferredai.jp\u002Finfo\u002Fplamo-community-license-en), revised by Preferred Networks on November 9, 2026. The license is not bundled; the app and docs link to the official text.\n- Personal and academic use of the model is free. Commercial use, including use inside a company or other organization, requires prior registration with Preferred Networks; it is free while your or your affiliates' most recent fiscal year revenue or sales is 1 billion yen or less, and a separate license agreement is required above that.\n- The revised license does not require attribution when you publish translated subtitles. For books, papers and similar long-form publications, state that PLaMo was used for translation; if you distribute subtitle data (for example as a dataset), state that the license applies to any model trained on it.\n- If you publish subtitles for streams or videos, mind the copyright of the source content.\n- Whisper models (MIT) and Silero VAD (MIT) follow their own licenses.\n- Third-party licenses for the bundled whisper.cpp \u002F llama.cpp \u002F ggml (MIT) and the Windows Vulkan loader `vulkan-1.dll` (Apache-2.0) are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n","OverlaySubs 是一款本地运行的桌面字幕叠加工具，可实时转录并翻译电脑播放的任意音频，并以悬浮字幕形式显示在屏幕顶层。它基于 Whisper-CPP 和 PLaMo 3 Translate 模型实现离线语音识别与多语言翻译（支持日语等），所有音频和文本处理均在设备端完成，无需联网或 API 密钥。采用 Rust + Tauri 构建，兼容 Windows x64 和 macOS Apple Silicon，支持点击穿透、自定义语言对及模型自动适配。适用于观看外语视频、远程会议辅助、听力训练等需实时双语字幕的本地化场景。",2,"2026-11-24 04:40:11","CREATED_QUERY"]