Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

86 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Translator Overlay

.NET 10 Windows and macOS Vulkan Metal CPU MIT License v1.1.6

Open-source, cross-vendor GPU & CPU real-time speech translation and screen OCR overlay for Windows and macOS.
Translate live system audio, microphone speech, and on-screen text with zero telemetry, no NVIDIA lock-in, and full MIT-licensed source code.

Animated example: selecting a Russian sentence and showing its English translation


Overview

Live Translator Overlay is an open-source project licensed under the MIT License. All core translation, OCR, and speech recognition features are free under MIT.

With v1.1.6, Live Translator Overlay adds 3-tier continuous nonstop speech tracking (splitting long unbroken monologues at low-energy inter-word valleys every ~4.2–6.6 s with cross-clause boundary deduplication instead of stalling 8.5 s or flickering word-by-word), unlocks Vulkan/Metal GPU acceleration across all local speech models (Base, Small, LargeTurbo, Auto) with Beam-2 GPU decoding (5.73% mixed FLEURS error), and upgrades M2M-100 offline translation (repetition_penalty=1.15, no_repeat_ngram_size=3, multi-sentence batching at 164.3 ms mean clause latency) plus HTTP/2 connection pooling:

  • Universal Cross-Vendor GPU Acceleration Across All Local Tiers: Uses Whisper.net.Runtime.Vulkan (with FlashAttention enabled and safe fallback) on Windows across NVIDIA, AMD, and Intel GPUs, plus Whisper.net.Runtime.Metal on Apple Silicon macOS across ggml-base.bin (148 MB), ggml-small.bin (488 MB), and ggml-large-v3-turbo-q5_0.bin (574 MB), falling back cleanly to CPU (Cpu / NoAvx).
  • Continuous Nonstop Speech & Calm Per-Sentence Captions: Commits natural pauses (520 ms speaker-relative silence), micro-breath valleys (>= 4.2 s), and lowest-energy inter-word splits (6.6 s cap via FindLowestEnergySplitSample), strips boundary word overlaps (SentenceBoundaryDeduplicator) and Whisper artifacts (Subtitle by DimaTorzok, Amara.org), and updates original + translated captions atomically via a decoupled FIFO worker.
  • Persistent Warm Local Translation (--daemon + Multi-Sentence Batching): Runs offline M2M-100 (418M int8 / int8_float16) via runtime/translation_worker.py --daemon with automatic CUDA cublas64_12 discovery, abbreviation-safe multi-sentence batching, repetition_penalty=1.15, and no_repeat_ngram_size=3 (164.3 ms mean continuous clause latency / 288.9 ms 3-sentence batch on RTX 2050), alongside HTTP/2-pooled Google Translate and Groq AI providers.
  • Empirical Research & Novelty Paper: See research/speech/paper/PAPER_NOVELTY_AND_RESEARCH_GAP.md and research/speech/paper/continuous-dual-model-benchmark-v116.json for full FLEURS and continuous nonstop speech benchmarks.

Features

Windows (LiveTranslatorOverlay)

  • Cross-Vendor GPU + CPU Local Speech (No Key):
    • local: ggml-base.bin (148 MB) on Vulkan GPU when available or CPU (Cpu + NoAvx fallback).
    • local-small: ggml-small.bin (488 MB) on Vulkan GPU when available (0.116x RTF) or CPU fallback.
    • local-auto: Continuous per-sentence mode — automatically selects ggml-large-v3-turbo-q5_0.bin (574 MB) on Vulkan GPU when available, or ggml-base.bin on CPU, with Silero VAD speech-span trimming and startup shader warmup.
    • local-turbo: Continuous per-sentence mode using ggml-large-v3-turbo-q5_0.bin on Vulkan GPU (Beam-2 decoding) with CPU fallback.
  • Key-Free & Optional Offline/Cloud Translation: Key-free Google Translate (MyMemory fallback) by default; optional persistent offline CTranslate2 daemon (LocalTranslateProvider, Win32 JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE managed); optional user-supplied Groq AI and Deepgram keys protected via Windows DPAPI (CurrentUser).
  • Live Screen OCR Translation: Draw any screen region to translate game dialogue or UI text locally via Windows.Media.Ocr.
  • Privacy-First Floating Overlay: Draggable always-on-top captions with WDA_EXCLUDEFROMCAPTURE capture exclusion for OBS/Discord/Zoom.
  • Japanese & Multi-Script Rendering + 4 UI Languages: Standard, Hiragana, Furigana, Romaji, or Katakana output across a 100-language catalog, localized in English, Indonesian, Russian, and Spanish.
  • One-Click Windows Setup Wizard & Authenticated Update Channels (main / private beta / owner dev): Verifies SHA-256 package hashes across updates/ml-stable.json (main), server-gated private Supabase Storage signed URLs (beta, requiring a developer-verified US$100 Lifetime Insider grant), and local DevFeed\ml-dev.json (dev). Windows releases publish both LiveTranslatorOverlay-Setup-<ver>.exe (NSIS 1-click installer) and LiveTranslatorOverlay-Windows-x64.zip.
  • Login-Optional Donations (User#XXXXX), Salted HWID & ECDSA Provenance (ml-3): Core translation and custom donations work without login (appearing deterministically as User#10000–User#99999 on Supporters, protected locally in guest-donations.dat). Joining Community Rankings or claiming Lifetime Supporter (US$19.99) / Lifetime Insider (US$100) badges requires email OTP sign-in ([email protected]). Anti-spoofing and device rate limits use a one-way salted SHA-256 hardware fingerprint (HardwareFingerprint), ECDSA P-256 entitlements (EntitlementSignature), and Supabase RLS (20261123180000_guest_donations_hwid_and_antiabuse.sql) without ever transmitting raw serial numbers.
  • Account Login, Selectable Tiers & Donation Tracking: Built-in Community & Account dialog supporting email OTP sign-in (livetranslator.app via Supabase Auth when community.json is configured, or encrypted local staging ledger offline), guest & signed-in donation history, selectable Lifetime Supporter (US$19.99), Lifetime Insider (US$100 Beta access), or custom User#XXXXX donations, and solo-developer gratitude messages. Core MIT functionality remains free and public checkout remains staged (SupportCatalog.Closed).

macOS (MacApp, macOS 14+)

  • Metal GPU / CPU Local Speech & Floating Captions: Captures System audio (ScreenCaptureKit) or Microphone (AVAudioEngine) via MacApp/NativeAudio.swift with selectable Balanced (CPU), Larger model (CPU), Auto (Metal GPU / CPU), and Large-v3-turbo (Metal GPU) speech options.
  • Side-by-Side Workspace, History & Community/Account: 100-language catalog, up to 500 scroll-preserving history entries, and synchronized Account Login, Donation Tracker, and Update Channel selector.
  • Current macOS limits: Screen OCR and automatic in-app self-updater remain Windows-only; prebuilt Mac archives are ad-hoc signed (MacApp/INSTALL.md).

Accuracy & Latency Notes

  • Speech recognition and translation remain approximate. On an RTX 2050 laptop running cross-vendor Vulkan (v1.1.6), large-v3-turbo (Q5_0, Beam-2) decodes at 0.127x RTF (7.9x faster than real time) with 5.73% mixed held-out FLEURS error (6.95% EN WER, 7.62% ID WER, 3.33% JA CER, 5.00% RU WER), while Whisper small on Vulkan GPU runs at 0.116x RTF (8.6x faster than real time). On 21.8–26.6 s unbroken continuous speech streams with zero 700 ms pauses, v1.1.6 commits calm clauses every 5.09 s mean (5.0 clauses/stream) with 164.3 ms mean warm CUDA M2M-100 translation (288.9 ms 3-sentence batch). True wall-clock time depends on host GPU/CPU speed and selected translation engine.

3-Branch Release Channels (dev, beta, main)

Branch / Channel Repository & Feed Intended Audience Notes
main (stable) Public origin (updates/ml-stable.json) Free MIT users & Lifetime Supporters (US$19.99) Verified public Windows (.exe Setup + .zip) & Mac releases.
beta Private repo private + authenticated Supabase Edge Function beta-release Developer-verified Lifetime Insiders (US$100) Locked in app until the developer verifies your payment (lt_admin_grant_support / Refresh access status); downloads via time-limited signed Storage URLs.
dev Owner local workspace (DevFeed\ml-dev.json) & private repo Repository owner only Syncs to %LOCALAPPDATA%\LiveTranslatorOverlay\DevApp and refreshes desktop/workspace shortcut via scripts/publish-channel.ps1 -Channel dev.

Build from Source

Prerequisites

  • .NET 10 SDK
  • Windows builds: Windows 10/11 x64. Packaging (scripts/package-windows.ps1) bundles C++ CRT DLLs (VS Redistributable or System32 fallback) alongside Vulkan and CPU/NoAvx native runtimes.
  • macOS builds: macOS 14+ with Xcode Command Line Tools (swiftc, codesign) for MacApp/package-macos.sh.
  • Database checks: Node.js (@electric-sql/pglite in an external temp dir).

Build & Verify

# Build Windows & macOS targets
dotnet build LiveTranslatorOverlay.csproj -c Release --nologo
dotnet build MacApp/LiveTranslatorMac.csproj -c Release --nologo

# Run all 4 offline verification suites + WPF UI check
dotnet run --project tests/RegressionChecks/RegressionChecks.csproj -c Release --nologo
dotnet run --project tests/AuditChecks/AuditChecks.csproj -c Release --nologo
dotnet run --project tests/SpeakerChecks/SpeakerChecks.csproj -c Release --nologo
dotnet run --project tests/LocalCpuChecks/LocalCpuChecks.csproj -c Release --nologo
dotnet run --project tests/LocalCpuChecks/LocalCpuChecks.csproj -c Release --nologo -- --ui

# Package self-contained Windows release or sync owner DevApp
./scripts/package-windows.ps1
./scripts/publish-channel.ps1 -Channel dev

Offline database migration check (see supabase/README.md):

npm.cmd install --prefix "$env:TEMP\pglite-verify" @electric-sql/pglite
node tests/CommunityDatabase/verify.mjs "$env:TEMP\pglite-verify\node_modules"

Downloads & Configuration

Prebuilt binaries are published on GitHub Releases:

  • Windows 10/11 x64 Setup Wizard (Recommended): LiveTranslatorOverlay-Setup-1.1.6.exe (one-click per-user installer — extracts binaries, installs Start Menu & Desktop shortcuts, and prepares speech models).
  • Windows 10/11 x64 Portable Archive: LiveTranslatorOverlay-Windows-x64.zip (self-contained .NET + CRT + Vulkan + CPU/NoAvx).
  • macOS 14+ (osx-arm64 / osx-x64): LiveTranslatorOverlay-Mac-preview-*.zip (Metal + CPU).

Optional keys persist under %LOCALAPPDATA%\LiveTranslatorOverlay\appsettings.json (DPAPI encrypted on Windows; never commit appsettings.json or community.json).


Support Development

All core features remain free under the MIT License. Voluntary support funds ongoing solo development across additional languages and Windows/macOS builds.

Tier Login Required? Amount Benefits & Notes
Lifetime Supporter Yes (Email OTP) US$19.99 once Signed lifetime support record & personal thank-you, helping sustain solo multi-language development.
Lifetime Insider Yes (Email OTP) US$100 once Developer-verified beta channel early-access builds, priority support & experimental features.
Custom Donate No (Optional) Any positive USD Appears anonymously as deterministic User#XXXXX from your salted HWID on the Supporters board, or links to your signed-in ledger.

Note: Real payment gateway links remain disabled (SupportCatalog.Closed) while checkout integration is staged; sign-in, livetranslator.app SMTP templates (supabase/email/), and selection operate via local staging tracking or configured Supabase preview instances.


Documentation & Policies

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages