Source preview · development
User guide
Watch German lectures with Russian voice-over while the next sections are prepared on your Mac.
Lecture player for Mac: local German speech recognition, translation and Russian Kseniya voice-over in sections. Telegram streaming and home-network viewing.
macOS 15+ · Apple Silicon · Source only · in development
Source About the app User guide Report a problem
Requirements and limitations: 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.
First steps: Read the guide and BUILD.en.md. Compile using swift build; a complete .app needs prepared Runtime components. Open a video, choose subtitles or a German audio track, then start translation.
No 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.
User guideSource codeAbout the app
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.
Lektien Player – Quick guide
- Open selects a video. Matching
.de.srt,.srtand.ru.srtfiles in the same folder connect automatically. Library lists videos from a folder you choose. - Subtitles selects external SRT files or an embedded text track. Turn off all subtitles hides everything. Use Subtitle appearance… for font size, colors, outline and background.
- Translate prepares translation, selective review and Russian speech in sections. Existing complete Russian SRT files are reused. Read aloud prepares existing Russian text using Silero Kseniya.
-
Space plays or pauses. The timeline shows ready sections and preparation. Seeking prioritizes the new position. A manual pause stays paused while the buffer keeps growing. Defaults: six minutes ahead during playback, ten minutes while paused.
-
Audio mixes embedded audio tracks. Original and Kseniya have separate volume controls. Duck original gently lowers the background during Russian speech.
- View → Controls layout or Settings offers three layouts: below the video, fading over the video, sliding up from the bottom. The two overlay layouts can hide automatically or with the arrow. The bottom edge brings them back. Showing and hiding do not resize the window. Opacity is adjustable.
- In Fullscreen, all buttons share the sliding bottom panel. The bottom edge reveals it; only the macOS system bar appears at the top. Esc exits fullscreen. Fill the screen chooses cropping or the entire picture with margins. In windowed mode the whole picture stays below the title bar. Settings → Video behind the title bar enables top-edge overlap separately.
- Settings → Interface language switches between Deutsch, English and Русский. This does not change processing: currently German → Russian with Kseniya. More translation directions and voices are planned.
ChatGPT shows the remaining quota for the entire account. Finished translations and speech sections live in .lektien beside the videos. Keep that folder when moving the library. Original files are not replaced.
Without SRT, Translate first looks for embedded text, then offers a German audio track. More → Subtitles from video allows manual selection. Recognition runs on the Mac in 30-second sections; purple areas show its buffer. Uncheck translation for German text without ChatGPT requests. Complete .de.srt is saved beside the video after all sections are ready. Cache and playback position remain in .lektien.
For Telegram, select a channel and choose Watch. Video starts through byte ranges. Without an external SRT, Translate offers a German audio track and recognizes it in 30-second sections without waiting for the complete file. Seeking prioritizes the new position. Ranges and completed sections are saved; selecting another video stops the old preparation. Only recognized text is sent for translation. OCR is excluded.
Timeline colours
Time runs left to right. Dark grey is not prepared. Bright purple means recognition is running; translucent purple means German text has been recognised. Blue ahead of the playhead is translation or selective review. Teal means Russian text is ready. Yellow-orange means speech is being generated. Light grey is cached audio. The filled bar behind the playhead shows elapsed playback in the system accent colour, usually blue, covering the other colours.
A German SRT skips recognition; a ready Russian SRT goes directly to speech. Seeking prioritises the new position and keeps finished sections.
Save voice
More → Save voice and subtitles… asks for a folder. If Russian text is not ready yet, start Translate first. Saving prepares the entire lecture, including sections before the viewing position, and continues while paused. Playback keeps priority. Cached sections are reused; missing translation uses the normal quota. An existing Russian SRT needs no translation requests.
The new folder contains voice.ru.m4a, voice.ru.srt and, if available, voice.de.srt. Audio contains only Kseniya, with video-timed pauses and silence through the end; the original soundtrack is not mixed in. Playback volume controls do not change the saved file. Show saved files opens the result in Finder. Name collisions receive a new numbered folder. Cancel saving restores the normal 6–10 minute buffer and keeps the cache. During assembly, cancelling removes only the temporary result.
Stress and pronunciation
After Telegram sign-in and selection of an allowed channel on the Mac, its videos and adjacent SRT files appear in the same LAN browser. Choose video, audio and subtitles; playback and seeking use byte ranges without a full download. With no text, choose a German audio track and start preparation for Russian speech. After starting or seeking far, the browser waits for 200 seconds of loaded speech.
New translations automatically include pronunciation hints for difficult identifiers
and foreign names. Subtitles keep NF-κB, while the voice reads its Russian name.
No separate request is needed; hints are saved for this video. Numbers, indices,
charges and individual Greek symbols are handled locally. The editor below is
only needed for manual corrections.
More → Stress and pronunciation… opens the dictionary for all videos in the
current folder. Example: кремний => кр+емний, with + before the stressed vowel.
An acute accent also works: кре́мний. For ambiguous words, use a phrase such as
дверной замок => дверной зам+ок. Longer phrases take priority. Kseniya determines
other stresses and ё automatically, but may make mistakes. Listen to Kseniya
tests the draft locally and pauses the video. Save and apply regenerates affected
audio parts. Translation and subtitle text/timing stay unchanged. Rules are stored
in .lektien/pronunciation.txt beside the videos.
Save a video with tracks
Russian Kseniya audio comes first and is enabled by default; the German original is a separate selectable track. Russian subtitles also come first and are enabled, while German subtitles remain separate and disabled. You can change the default audio in the save dialog.
More → Save video with voice… lets you choose MP4/MKV, original audio tracks, default audio and RU/DE subtitles. Then choose a folder. Kseniya remains a separate switchable track; mixer volume and ducking are not baked into the file.
The new folder contains video.mp4 or video.mkv and separate M4A/SRT files. Video is copied without quality loss; original audio incompatible with MP4 is converted to AAC. MKV is available when the video codec cannot be placed in MP4. Subtitles remain switchable and are not burned into the picture. The source is preserved, and existing folder names receive a numeric suffix. Playing the saved MKV requires a player that supports its codecs.
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: RIGHTS.md. 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.