Understand your lectures. Keep your place.
Watch German lectures with Russian voice-over while the next sections are prepared on your Mac.
Source only · in developmentStatusNo binary release or installer is published. The repository contains the latest selected recognition improvements; it does not include private development history or machine-specific runtime files.
“Lektien” is the project’s name and echoes the German word “Lektion” (lesson). The repository, package and folder names keep this spelling.

What's inside
Installation, features, data, checks.
Installation
Source only: the steps from “Build and requirements”.
Your data
Recognition and speech synthesis run on your Mac. For translation, the subtitle text is sent through Codex CLI to a signed-in service (ChatGPT). Telegram uses your own session.
Translation through an external serviceFeatures
Checked
- Documentation checks on GitHub Actions
- Swift and Node tests in the repository (locally with scripts/verify.sh)
- Runtime manifest with sizes and SHA-256 (Config/runtime-manifest.json)
- Interface in German, English and Russian
- Installation on a freshly set-up Mac not yet verified
What it does
- Local MP4/M4V/MKV playback, embedded audio and text subtitle selection, adjacent SRT discovery.
- German speech recognition in sections, translation with saved text caches, and local Russian Silero Kseniya synthesis.
- Separate voice volume, original-audio ducking, subtitle styling and three control-panel layouts.
- Telegram byte-range streaming and browser viewing over the same home network.
- M4A/SRT export and MP4/MKV with separate Russian and German tracks; video copied without re-encoding when supported.
Build and requirements
Source only; no ready-to-install package. macOS 15+, Apple Silicon, Xcode 16.4+ / Swift 6.1. Full functionality needs a separate Runtime, Codex CLI signed in to ChatGPT, and Python/Torch/Silero Kseniya. Installation on a clean Mac is not yet verified.
Install Xcode 16.4 or later and select its developer directory. Run swift build from the project folder to compile. bash scripts/build-preview.sh additionally requires Runtime matching Config/runtime-manifest.json; it validates every pinned size and SHA-256 and does not download components. Supply it using LEKTIEN_RUNTIME_DIRECTORY. The model and media tools are excluded from Git. The manifest records the existing local artifact set, not a public download service. No automatic, reproducible runtime acquisition is provided yet.
Kseniya currently expects an existing Python environment in ~/Library/Application Support/SRTVoiceover/.venv-silero with Python/Torch/Silero and the voice model. Codex CLI must be installed and authorized independently. The application also uses system Ruby. A source build alone does not install these components. Do not copy credentials or a virtual environment between machines.
Current limitations
- Current processing direction is German → Russian; interface languages are DE/EN/RU. Other voices and translation directions are planned.
- The browser waits for a 200-second speech reserve at startup or after a distant seek; near the end it uses the remaining duration. Manual pause keeps preparing ahead.
- One remote viewer/preparation session; long real-device and weak-Wi-Fi tests remain necessary. Safari HTTPS-only mode may block the local HTTP address.
- OCR, screen capture, live Zoom/Teams translation and a Windows-native application are not implemented.
- Pronunciation and recognition can contain errors. No accuracy, medical interpretation or seamless playback guarantee is made.
Data and privacy
Speech recognition and synthesis run locally. Translation sends prepared subtitle text to the signed-in service. Telegram requests use your own authorized session. Credentials are stored separately on the Mac. Source recordings are preserved; cache data is stored in .lektien. Only share the chosen library on a trusted home network; do not forward its port to the Internet.
Rights and use
The source code is public for viewing; no open-source license is granted. No release binary is currently published. Third-party components keep their own terms. RIGHTS.md